summaryrefslogtreecommitdiffhomepage
path: root/test/run.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-01-24 16:37:56 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-01-24 16:37:56 +0300
commit4b19848e4e4f5472042a1621178d4c3b86f427ef (patch)
treeab02af952df5c85a346d3176c5a293afa8b440c3 /test/run.py
parent17e1a19063af901ed4c6b490d654f30d4b2b3a93 (diff)
downloadunit-4b19848e4e4f5472042a1621178d4c3b86f427ef.tar.gz
unit-4b19848e4e4f5472042a1621178d4c3b86f427ef.tar.bz2
Tests: ignore unexpected successes in return code.
Diffstat (limited to '')
-rwxr-xr-xtest/run.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/run.py b/test/run.py
index 01765249..0504a6f7 100755
--- a/test/run.py
+++ b/test/run.py
@@ -12,5 +12,8 @@ tests = loader.discover(start_dir=this_dir)
suite.addTests(tests)
runner = unittest.TextTestRunner(verbosity=3)
-result = not runner.run(suite).wasSuccessful()
-sys.exit(result)
+result = runner.run(suite)
+
+ret = not (len(result.failures) == len(result.errors) == 0)
+
+sys.exit(ret)