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 <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6325
This commit is contained in:
Giuseppe Di Natale 2017-07-07 17:07:40 -07:00 committed by Brian Behlendorf
parent dda82a2eab
commit b24827ac1e

View File

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