Fix ansible-test python and pip executable search.

This commit is contained in:
Matt Clay 2018-03-14 11:35:59 -07:00
parent dd37857884
commit a8487feb70
14 changed files with 81 additions and 75 deletions

View file

@ -16,6 +16,7 @@ from lib.util import (
SubprocessError,
run_command,
display,
find_python,
)
from lib.config import (
@ -50,7 +51,7 @@ class CompileTest(SanityMultipleVersion):
if not paths:
return SanitySkipped(self.name, python_version=python_version)
cmd = ['python%s' % python_version, 'test/sanity/compile/compile.py']
cmd = [find_python(python_version), 'test/sanity/compile/compile.py']
data = '\n'.join(paths)