From: Ian Jackson Date: Fri, 5 Nov 2021 17:06:01 +0000 (+0000) Subject: TestSupport: sub broken: exit with status 0 for skip X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9f8471ca5a3cd1fdc632dd3e502acfdc5940e933;p=osstest.git TestSupport: sub broken: exit with status 0 for skip Otherwise, whatever calls us will set the step to fail (or something). Signed-off-by: Ian Jackson --- diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index ff890f9..ebe4362 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -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 ($) {