Skip to content

Commit

Permalink
Fix ansible-test virtualenv use in import test.
Browse files Browse the repository at this point in the history
(cherry picked from commit 998badb)
  • Loading branch information
mattclay committed Sep 6, 2018
1 parent e4c96f1 commit 37f7307
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/runner/lib/sanity/import.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def test(self, args, targets, python_version):

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')
Expand Down

0 comments on commit 37f7307

Please sign in to comment.