Skip to content

Commit 33268a8

Browse files
committed
test: exit with code 1 when no fn tests are found
Prevents the test_runner from exiting silently with code 0 when no tests were found.
1 parent 0fa9f17 commit 33268a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/test_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def main():
473473
if not enable_bitcoind:
474474
print("No functional tests to run.")
475475
print("Rerun ./configure with --with-daemon and then make")
476-
sys.exit(0)
476+
sys.exit(1)
477477

478478
# Build list of tests
479479
test_list = []
@@ -522,7 +522,7 @@ def main():
522522
if not test_list:
523523
print("No valid test scripts specified. Check that your test is in one "
524524
"of the test lists in test_runner.py, or run test_runner.py with no arguments to run all tests")
525-
sys.exit(0)
525+
sys.exit(1)
526526

527527
if args.help:
528528
# Print help for test_runner.py, then print help of the first script (with args removed) and exit.

0 commit comments

Comments
 (0)