aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiuseppe Di Natale <[email protected]>2017-07-07 17:07:40 -0700
committerBrian Behlendorf <[email protected]>2017-07-07 17:07:40 -0700
commitb24827ac1e327f763a8dd4ed60c44c2a5d918b42 (patch)
tree5b505fb171b774c20e5a6f7a1de07056adbd4359
parentdda82a2eabefcf3e044c5d3bbe78954dfc0e4248 (diff)
Exit test-runner with non-zero if tests are KILLED
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 <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: Giuseppe Di Natale <[email protected]> Closes #6325
-rwxr-xr-xtests/test-runner/cmd/test-runner.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-runner/cmd/test-runner.py b/tests/test-runner/cmd/test-runner.py
index be2de403b..4c53257df 100755
--- a/tests/test-runner/cmd/test-runner.py
+++ b/tests/test-runner/cmd/test-runner.py
@@ -719,6 +719,10 @@ class TestRun(object):
if Result.runresults['FAIL'] > 0:
return 1
+
+ if Result.runresults['KILLED'] > 0:
+ return 1
+
return 0