Fix ansible-test virtualenv use in import test.

(cherry picked from commit 998badbda5)
This commit is contained in:
Matt Clay 2018-09-04 09:28:34 -07:00
parent cc5d880a61
commit 3514a5d1b9

View file

@ -67,7 +67,9 @@ class ImportTest(SanityMultipleVersion):
remove_tree(virtual_environment_path)
cmd = ['virtualenv', virtual_environment_path, '--python', find_python(python_version), '--no-setuptools', '--no-wheel']
python = find_python(python_version)
cmd = [python, '-m', 'virtualenv', virtual_environment_path, '--python', python, '--no-setuptools', '--no-wheel']
if not args.coverage:
cmd.append('--no-pip')