]> granicus.if.org Git - zfs/commitdiff
Exit test-runner with non-zero if tests are KILLED
authorGiuseppe Di Natale <dinatale2@users.noreply.github.com>
Sat, 8 Jul 2017 00:07:40 +0000 (17:07 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 8 Jul 2017 00:07:40 +0000 (17:07 -0700)
fe46eeb introduced non-zero exit codes to test-runner.
A non-zero exit code should be returned when test-runner
decided to kill a test and mark it as KILLED.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6325

tests/test-runner/cmd/test-runner.py

index be2de403bee9c4f7e2f82f58958d1fa45de4946f..4c53257dfb630a50068a9bd0474fa4d9e06b895f 100755 (executable)
@@ -719,6 +719,10 @@ class TestRun(object):
 
         if Result.runresults['FAIL'] > 0:
             return 1
+
+        if Result.runresults['KILLED'] > 0:
+            return 1
+
         return 0