mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Merge bitcoin/bitcoin#29068: test: Actually fail when a python unit test fails
fa0534d7e47d44428d3f9dea6d2f6b8e86df22d4 test: Actually fail when a python unit test fails (MarcoFalke) Pull request description: Currently python unit test failures are ignored. Fix this. ACKs for top commit: theStack: ACK fa0534d7e47d44428d3f9dea6d2f6b8e86df22d4 BrandonOdiwuor: ACK fa0534d7e47d44428d3f9dea6d2f6b8e86df22d4 Tree-SHA512: c136be4c8d861d966f380e04d5d14b711b90c4011101302dae1332496e493207c5c673927586ed35b02b61a0b050bf45053a31e6ff766ec52f1d054caf0985e2
This commit is contained in:
parent
75e0334866
commit
e6f19e7760
@ -551,8 +551,7 @@ def run_tests(*, test_list, src_dir, build_dir, tmpdir, jobs=1, attempts=1, enab
|
|||||||
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)
|
|
||||||
|
|
||||||
tests_dir = src_dir + '/test/functional/'
|
tests_dir = src_dir + '/test/functional/'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user