Tests: ignore unexpected successes in return code.
This commit is contained in:
@@ -12,5 +12,8 @@ tests = loader.discover(start_dir=this_dir)
|
|||||||
suite.addTests(tests)
|
suite.addTests(tests)
|
||||||
|
|
||||||
runner = unittest.TextTestRunner(verbosity=3)
|
runner = unittest.TextTestRunner(verbosity=3)
|
||||||
result = not runner.run(suite).wasSuccessful()
|
result = runner.run(suite)
|
||||||
sys.exit(result)
|
|
||||||
|
ret = not (len(result.failures) == len(result.errors) == 0)
|
||||||
|
|
||||||
|
sys.exit(ret)
|
||||||
|
|||||||
Reference in New Issue
Block a user