diff --git a/tests/integration/targets/cloudformation_stack_set/runme.sh b/tests/integration/targets/cloudformation_stack_set/runme.sh index d499c679b26..8728de0d91a 100755 --- a/tests/integration/targets/cloudformation_stack_set/runme.sh +++ b/tests/integration/targets/cloudformation_stack_set/runme.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash set -eux - +unset PYTHONPATH # Run full test suite -source virtualenv.sh -pip install 'botocore>1.10.26' boto3 -ansible-playbook -i ../../inventory -v playbooks/full_test.yml "$@" +python3 -mvenv --clear _venv +_venv/bin/pip install 'botocore>1.10.26' boto3 +ansible-playbook -i ../../inventory -v playbooks/full_test.yml -e "ansible_python_interpreter=$(pwd)/_venv/bin/python" "$@" diff --git a/tests/integration/targets/efs/runme.sh b/tests/integration/targets/efs/runme.sh index e4f214b8e85..a906ef524ad 100755 --- a/tests/integration/targets/efs/runme.sh +++ b/tests/integration/targets/efs/runme.sh @@ -1,15 +1,16 @@ #!/usr/bin/env bash set -eux +unset PYTHONPATH export ANSIBLE_ROLES_PATH=../ # Test graceful failure for older versions of botocore -source virtualenv.sh -pip install 'botocore<1.10.57' boto3 -ansible-playbook -i ../../inventory -v playbooks/version_fail.yml "$@" +python3 -mvenv --clear _venv +_venv/bin/pip install 'botocore<1.10.57' boto3 +ansible-playbook -i ../../inventory -v playbooks/version_fail.yml -e "ansible_python_interpreter=$(pwd)/_venv/bin/python" "$@" # Run full test suite -source virtualenv.sh -pip install 'botocore>=1.10.57' boto3 -ansible-playbook -i ../../inventory -v playbooks/full_test.yml "$@" +python3 -mvenv --clear _venv +_venv/bin/pip install 'botocore>=1.10.57' boto3 +ansible-playbook -i ../../inventory -v playbooks/full_test.yml -e "ansible_python_interpreter=$(pwd)/_venv/bin/python" "$@" diff --git a/tests/integration/targets/elb_target/runme.sh b/tests/integration/targets/elb_target/runme.sh index fe0850e46c9..99f1abfd5bf 100755 --- a/tests/integration/targets/elb_target/runme.sh +++ b/tests/integration/targets/elb_target/runme.sh @@ -1,13 +1,13 @@ #!/usr/bin/env bash set -eux - +unset PYTHONPATH # Test graceful failure for older versions of botocore -source virtualenv.sh -pip install 'botocore<=1.7.1' boto3 -ansible-playbook -i ../../inventory -v playbooks/version_fail.yml "$@" +python3 -mvenv --clear _venv +_venv/bin/pip install 'botocore==1.7.0' 'boto3==1.4.7' boto3 +ansible-playbook -i ../../inventory -v playbooks/version_fail.yml -e "ansible_python_interpreter=$(pwd)/_venv/bin/python" "$@" # Run full test suite -source virtualenv.sh -pip install 'botocore' 'boto3>=1.16.57' -ansible-playbook -i ../../inventory -v playbooks/full_test.yml "$@" +python3 -mvenv --clear _venv +_venv/bin/pip install 'botocore' 'boto3>=1.16.57' boto3 +ansible-playbook -i ../../inventory -v playbooks/full_test.yml -e "ansible_python_interpreter=$(pwd)/_venv/bin/python" "$@"