]> git.proxmox.com Git - mirror_qemu.git/commitdiff
iotests: use the correct python to run linters
authorJohn Snow <jsnow@redhat.com>
Wed, 21 Jun 2023 00:21:19 +0000 (20:21 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Oct 2023 13:20:46 +0000 (15:20 +0200)
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>
tests/qemu-iotests/linters.py

index 65c4c4e82723633e9a1c79935b5c3fa8ccc09834..9fb3fd14497635c916236df6f351cba6ba11c9c7 100644 (file)
@@ -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,