From: Giuseppe Di Natale Date: Sat, 8 Jul 2017 00:07:40 +0000 (-0700) Subject: Exit test-runner with non-zero if tests are KILLED X-Git-Tag: zfs-0.7.0-rc5~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b24827ac1e327f763a8dd4ed60c44c2a5d918b42;p=zfs 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 Reviewed-by: George Melikov Signed-off-by: Giuseppe Di Natale Closes #6325 --- 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