diff options
author | Martin Leitner-Ankerl <martin.leitner-ankerl@dynatrace.com> | 2022-06-07 10:24:55 +0200 |
---|---|---|
committer | Martin Leitner-Ankerl <martin.leitner-ankerl@dynatrace.com> | 2022-06-07 10:24:55 +0200 |
commit | f26a496dfd0a7ce3833a10075027d7d5b0345e32 (patch) | |
tree | deb7c21fa045ecedaf00ce2a2cbb28d033800de5 /test/lint | |
parent | 64d72c4c8734b9dd45cb61cb2c2baf98766b0163 (diff) | |
download | bitcoin-f26a496dfd0a7ce3833a10075027d7d5b0345e32.tar.xz |
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.
Diffstat (limited to 'test/lint')
-rwxr-xr-x | test/lint/all-lint.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/lint/all-lint.py b/test/lint/all-lint.py index c280ba2db2..34a7b9742a 100755 --- a/test/lint/all-lint.py +++ b/test/lint/all-lint.py @@ -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) |