From: John Snow Date: Wed, 21 Jun 2023 00:21:19 +0000 (-0400) Subject: iotests: use the correct python to run linters X-Git-Tag: pull-xenfv-stable-20231106~34^2~30 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c624cb32a92b84e7978e512e4d67c4e2b72b0e2b;p=users%2Fdwmw2%2Fqemu.git 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 Message-ID: <20230621002121.1609612-5-jsnow@redhat.com> Signed-off-by: Paolo Bonzini --- 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,