Skip to content

Commit fa0534d

Browse files
author
MarcoFalke
committed
test: Actually fail when a python unit test fails
1 parent 60f6773 commit fa0534d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/functional/test_runner.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,7 @@ def run_tests(*, test_list, src_dir, build_dir, tmpdir, jobs=1, enable_coverage=
565565
test_framework_tests.addTest(unittest.TestLoader().loadTestsFromName("test_framework.{}".format(module)))
566566
result = unittest.TextTestRunner(verbosity=1, failfast=True).run(test_framework_tests)
567567
if not result.wasSuccessful():
568-
logging.debug("Early exiting after failure in TestFramework unit tests")
569-
sys.exit(False)
568+
sys.exit("Early exiting after failure in TestFramework unit tests")
570569

571570
flags = ['--cachedir={}'.format(cache_dir)] + args
572571

0 commit comments

Comments
 (0)