From f26a496dfd0a7ce3833a10075027d7d5b0345e32 Mon Sep 17 00:00:00 2001 From: Martin Leitner-Ankerl Date: Tue, 7 Jun 2022 10:24:55 +0200 Subject: [PATCH] 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. --- test/lint/all-lint.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/lint/all-lint.py b/test/lint/all-lint.py index c280ba2db29..34a7b9742a3 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)