mirror of
https://github.com/dogecoin/dogecoin.git
synced 2026-01-31 10:30:52 +00:00
Merge pull request #3429 from chromatic/1.14.7-add-pull-tester-error-checking
[QA] Check command-line arguments for test runner
This commit is contained in:
commit
02040c5414
@ -222,6 +222,10 @@ def runtests():
|
||||
if t in opts or re.sub(".py$", "", t) in opts:
|
||||
test_list.append(t)
|
||||
|
||||
if len(test_list) == 0:
|
||||
print(f"No tests selected; do you have a typo in {opts}?")
|
||||
sys.exit(1)
|
||||
|
||||
if print_help:
|
||||
# Only print help of the first script and exit
|
||||
subprocess.check_call((RPC_TESTS_DIR + test_list[0]).split() + ['-h'])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user