From b24827ac1e327f763a8dd4ed60c44c2a5d918b42 Mon Sep 17 00:00:00 2001 From: Giuseppe Di Natale Date: Fri, 7 Jul 2017 17:07:40 -0700 Subject: [PATCH] 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 --- tests/test-runner/cmd/test-runner.py | 4 ++++ 1 file changed, 4 insertions(+) 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