aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_runner.py
diff options
context:
space:
mode:
authorMax Edwards <youwontforgetthis@gmail.com>2024-03-06 12:56:35 +0000
committerMax Edwards <youwontforgetthis@gmail.com>2024-03-06 12:56:35 +0000
commit33268a855883142a039a7a7b14eb1345e52809fd (patch)
tree0e0dfb6a1e2d2bcf8de91f87e77f351e227aca21 /test/functional/test_runner.py
parent0fa9f17332a6d9b2eb6e3d9f9102bfd2d9c6f516 (diff)
downloadbitcoin-33268a855883142a039a7a7b14eb1345e52809fd.tar.xz
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.
Diffstat (limited to 'test/functional/test_runner.py')
-rwxr-xr-xtest/functional/test_runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/test_runner.py b/test/functional/test_runner.py
index a23c5f7333..4d66ea97c8 100755
--- a/test/functional/test_runner.py
+++ b/test/functional/test_runner.py
@@ -473,7 +473,7 @@ def main():
if not enable_bitcoind:
print("No functional tests to run.")
print("Rerun ./configure with --with-daemon and then make")
- sys.exit(0)
+ sys.exit(1)
# Build list of tests
test_list = []
@@ -522,7 +522,7 @@ def main():
if not test_list:
print("No valid test scripts specified. Check that your test is in one "
"of the test lists in test_runner.py, or run test_runner.py with no arguments to run all tests")
- sys.exit(0)
+ sys.exit(1)
if args.help:
# Print help for test_runner.py, then print help of the first script (with args removed) and exit.