mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-13 13:14:46 +02: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:
@ -13,8 +13,7 @@ from subprocess import run
|
||||
|
||||
exit_code = 0
|
||||
mod_path = Path(__file__).parent
|
||||
for lint in glob(f"{mod_path}/lint-*"):
|
||||
if lint != __file__:
|
||||
for lint in glob(f"{mod_path}/lint-*.py"):
|
||||
result = run([lint])
|
||||
if result.returncode != 0:
|
||||
print(f"^---- failure generated from {lint.split('/')[-1]}")
|
||||
|
Reference in New Issue
Block a user