Browse Source

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>
John Snow 2 years ago
parent
commit
c624cb32a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/qemu-iotests/linters.py

+ 1 - 1
tests/qemu-iotests/linters.py

@@ -68,7 +68,7 @@ def run_linter(
     :raise CalledProcessError: If the linter process exits with failure.
     :raise CalledProcessError: If the linter process exits with failure.
     """
     """
     subprocess.run(
     subprocess.run(
-        ('python3', '-m', tool, *args),
+        (sys.executable, '-m', tool, *args),
         env=env,
         env=env,
         check=True,
         check=True,
         stdout=subprocess.PIPE if suppress_output else None,
         stdout=subprocess.PIPE if suppress_output else None,