mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
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.
This commit is contained in:
parent
0fa9f17332
commit
33268a8558
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue