]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
TestSupport: sub broken: exit with status 0 for skip
authorIan Jackson <iwj@xenproject.org>
Fri, 5 Nov 2021 17:06:01 +0000 (17:06 +0000)
committerIan Jackson <iwj@xenproject.org>
Mon, 6 Dec 2021 18:17:13 +0000 (18:17 +0000)
Otherwise, whatever calls us will set the step to fail (or something).

Signed-off-by: Ian Jackson <iwj@xenproject.org>
Osstest/TestSupport.pm

index ff890f96c811ed49941e9989786b41abac5d0c23..ebe4362755554a4a96d642a8642cb2338f5bc3d6 100644 (file)
@@ -285,7 +285,12 @@ END
       ($affected>0 ? "marked $flight.$job $newst"
                    : "($flight.$job not marked $newst)").
                     "\n";
-    die $msg;
+    if ($newst =~ m{^(?:skip)$}) {
+       print STDERR $msg;
+       exit 0;
+    } else {
+       die $msg;
+    }
 }
 
 sub complete_testid ($) {