diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-12-12 21:18:18 +0100 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-12-12 21:18:08 +0100 |
commit | fa0534d7e47d44428d3f9dea6d2f6b8e86df22d4 (patch) | |
tree | 7c459db27a85af92ffc6bdcd8da3973e40b2f399 /test/functional/test_runner.py | |
parent | 60f677375e52832536a599afae3226f8e2155d88 (diff) | |
download | bitcoin-fa0534d7e47d44428d3f9dea6d2f6b8e86df22d4.tar.xz |
test: Actually fail when a python unit test fails
Diffstat (limited to 'test/functional/test_runner.py')
-rwxr-xr-x | test/functional/test_runner.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/test_runner.py b/test/functional/test_runner.py index 6016a482f8..bf52ba6d93 100755 --- a/test/functional/test_runner.py +++ b/test/functional/test_runner.py @@ -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))) result = unittest.TextTestRunner(verbosity=1, failfast=True).run(test_framework_tests) if not result.wasSuccessful(): - logging.debug("Early exiting after failure in TestFramework unit tests") - sys.exit(False) + sys.exit("Early exiting after failure in TestFramework unit tests") flags = ['--cachedir={}'.format(cache_dir)] + args |