aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2023-06-20 20:21:19 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2023-10-17 15:20:46 +0200
commitc624cb32a92b84e7978e512e4d67c4e2b72b0e2b (patch)
treeeae207875493b0fa4cf26391c43033e4bc11538f
parent9444e5f5a1b160413023165827a0ffd69c091ff7 (diff)
iotests: use the correct python to run linters
Whichever python is used to run iotest 297 should be the one used to actually run the linters. Signed-off-by: John Snow <jsnow@redhat.com> Message-ID: <20230621002121.1609612-5-jsnow@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--tests/qemu-iotests/linters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/linters.py b/tests/qemu-iotests/linters.py
index 65c4c4e827..9fb3fd1449 100644
--- a/tests/qemu-iotests/linters.py
+++ b/tests/qemu-iotests/linters.py
@@ -68,7 +68,7 @@ def run_linter(
:raise CalledProcessError: If the linter process exits with failure.
"""
subprocess.run(
- ('python3', '-m', tool, *args),
+ (sys.executable, '-m', tool, *args),
env=env,
check=True,
stdout=subprocess.PIPE if suppress_output else None,