Skip to content

Commit

Permalink
test: Actually fail when a python unit test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Dec 12, 2023
1 parent 60f6773 commit fa0534d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/functional/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fa0534d

Please sign in to comment.