mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 14:34:49 +01:00
test: clean up all-lint.py
Removed th check against __file__ which is not necessary any more after the rename to all-lint.py. Changed glob to find only `lint-*.py` scripts.
This commit is contained in:
parent
64d72c4c87
commit
f26a496dfd
1 changed files with 5 additions and 6 deletions
|
@ -13,11 +13,10 @@ from subprocess import run
|
|||
|
||||
exit_code = 0
|
||||
mod_path = Path(__file__).parent
|
||||
for lint in glob(f"{mod_path}/lint-*"):
|
||||
if lint != __file__:
|
||||
result = run([lint])
|
||||
if result.returncode != 0:
|
||||
print(f"^---- failure generated from {lint.split('/')[-1]}")
|
||||
exit_code |= result.returncode
|
||||
for lint in glob(f"{mod_path}/lint-*.py"):
|
||||
result = run([lint])
|
||||
if result.returncode != 0:
|
||||
print(f"^---- failure generated from {lint.split('/')[-1]}")
|
||||
exit_code |= result.returncode
|
||||
|
||||
exit(exit_code)
|
||||
|
|
Loading…
Add table
Reference in a new issue