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>
This commit is contained in:
parent
9444e5f5a1
commit
c624cb32a9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user