diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-01-24 16:37:56 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-01-24 16:37:56 +0300 |
commit | 4b19848e4e4f5472042a1621178d4c3b86f427ef (patch) | |
tree | ab02af952df5c85a346d3176c5a293afa8b440c3 | |
parent | 17e1a19063af901ed4c6b490d654f30d4b2b3a93 (diff) | |
download | unit-4b19848e4e4f5472042a1621178d4c3b86f427ef.tar.gz unit-4b19848e4e4f5472042a1621178d4c3b86f427ef.tar.bz2 |
Tests: ignore unexpected successes in return code.
Diffstat (limited to '')
-rwxr-xr-x | test/run.py | 7 |
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) |