mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
test: Actually fail when a python unit test fails
This commit is contained in:
parent
60f677375e
commit
fa0534d7e4
1 changed files with 1 additions and 2 deletions
|
@ -565,8 +565,7 @@ def run_tests(*, test_list, src_dir, build_dir, tmpdir, jobs=1, enable_coverage=
|
||||||
test_framework_tests.addTest(unittest.TestLoader().loadTestsFromName("test_framework.{}".format(module)))
|
test_framework_tests.addTest(unittest.TestLoader().loadTestsFromName("test_framework.{}".format(module)))
|
||||||
result = unittest.TextTestRunner(verbosity=1, failfast=True).run(test_framework_tests)
|
result = unittest.TextTestRunner(verbosity=1, failfast=True).run(test_framework_tests)
|
||||||
if not result.wasSuccessful():
|
if not result.wasSuccessful():
|
||||||
logging.debug("Early exiting after failure in TestFramework unit tests")
|
sys.exit("Early exiting after failure in TestFramework unit tests")
|
||||||
sys.exit(False)
|
|
||||||
|
|
||||||
flags = ['--cachedir={}'.format(cache_dir)] + args
|
flags = ['--cachedir={}'.format(cache_dir)] + args
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue