aboutsummaryrefslogtreecommitdiff
path: root/test/lint
diff options
context:
space:
mode:
authorKristaps Kaupe <kristaps@blogiem.lv>2023-01-03 23:23:07 +0200
committerKristaps Kaupe <kristaps@blogiem.lv>2023-01-03 23:23:07 +0200
commitf6eadaa413f20c1853cf1bea5141560cd5e4b15a (patch)
treed2099a0c6038b91c9ac347028617f3d09b282587 /test/lint
parentf301bf52ab0096dc5d233d89b468885d6a3f12a6 (diff)
downloadbitcoin-f6eadaa413f20c1853cf1bea5141560cd5e4b15a.tar.xz
Use same Python executable for subprocesses as for all-lint.py
Diffstat (limited to 'test/lint')
-rwxr-xr-xtest/lint/all-lint.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lint/all-lint.py b/test/lint/all-lint.py
index 34a7b9742a..c7889796c6 100755
--- a/test/lint/all-lint.py
+++ b/test/lint/all-lint.py
@@ -10,11 +10,12 @@
from glob import glob
from pathlib import Path
from subprocess import run
+from sys import executable
exit_code = 0
mod_path = Path(__file__).parent
for lint in glob(f"{mod_path}/lint-*.py"):
- result = run([lint])
+ result = run([executable, lint])
if result.returncode != 0:
print(f"^---- failure generated from {lint.split('/')[-1]}")
exit_code |= result.returncode