From 4b19848e4e4f5472042a1621178d4c3b86f427ef Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Wed, 24 Jan 2018 16:37:56 +0300 Subject: Tests: ignore unexpected successes in return code. --- test/run.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/run.py') 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) -- cgit