summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2018-09-04 09:28:34 -0700
committerMatt Clay <matt@mystile.com>2018-09-05 19:21:48 -0700
commit0c3faa2e1c666d018427fb9e1a9d558ed32f3b52 (patch)
tree0706d901dac1d254f757bdbdee27dc50cd4c4115
parent9ac580f56451cf62b902d00e704373b4907a5fae (diff)
downloadansible-0c3faa2e1c666d018427fb9e1a9d558ed32f3b52.tar.gz
Fix ansible-test virtualenv use in import test.
(cherry picked from commit 998badbda55e69413ee8b70349d782a177ddee73)
-rw-r--r--test/runner/lib/sanity/import.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/runner/lib/sanity/import.py b/test/runner/lib/sanity/import.py
index 9fbc127f0c..60daeff79e 100644
--- a/test/runner/lib/sanity/import.py
+++ b/test/runner/lib/sanity/import.py
@@ -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')