From 6b4aabd35565ed387fda4c94ec661672ae36c4e8 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 26 Mar 2019 23:54:04 -0700 Subject: [PATCH] Use virtualenv for filters and lookups tests. --- test/integration/targets/filters/runme.sh | 3 +++ test/integration/targets/lookups/runme.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/test/integration/targets/filters/runme.sh b/test/integration/targets/filters/runme.sh index 6ddd65f1e68..e1e1333caca 100755 --- a/test/integration/targets/filters/runme.sh +++ b/test/integration/targets/filters/runme.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +set -ex +virtualenv --system-site-packages --python "${ANSIBLE_TEST_PYTHON_INTERPRETER}" "${OUTPUT_DIR}/venv" +source "${OUTPUT_DIR}/venv/bin/activate" set -eux # Requirements have to be installed prior to running ansible-playbook diff --git a/test/integration/targets/lookups/runme.sh b/test/integration/targets/lookups/runme.sh index 4fda3bfdf3d..a54fbfd4a8d 100755 --- a/test/integration/targets/lookups/runme.sh +++ b/test/integration/targets/lookups/runme.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +set -ex +virtualenv --system-site-packages --python "${ANSIBLE_TEST_PYTHON_INTERPRETER}" "${OUTPUT_DIR}/venv" +source "${OUTPUT_DIR}/venv/bin/activate" set -eux # Requirements have to be installed prior to running ansible-playbook