summaryrefslogtreecommitdiff
path: root/test/utils
diff options
context:
space:
mode:
authorMatt Clay <mclay@redhat.com>2021-05-10 15:06:09 -0700
committerGitHub <noreply@github.com>2021-05-10 15:06:09 -0700
commitbdffb5997829444603af9ad677cf48a3aefd3ed0 (patch)
tree05a3e35d1e9e316e10a77068923bdfc71b079533 /test/utils
parentd85809d5924e3e5d76dc3fe2da0ace9e9134ec24 (diff)
downloadansible-bdffb5997829444603af9ad677cf48a3aefd3ed0.tar.gz
Update Python versions used to run network tests. (#74647)
Diffstat (limited to 'test/utils')
-rwxr-xr-xtest/utils/shippable/incidental/network.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/utils/shippable/incidental/network.sh b/test/utils/shippable/incidental/network.sh
index 8ca8026233..4575476a92 100755
--- a/test/utils/shippable/incidental/network.sh
+++ b/test/utils/shippable/incidental/network.sh
@@ -16,10 +16,8 @@ provider="${P:-default}"
# python versions to test in order
# all versions run full tests
-python_versions=(
- 2.7
- 3.6
-)
+IFS=' ' read -r -a python_versions <<< \
+ "$(PYTHONPATH="${PWD}/test/lib" python -c 'from ansible_test._internal import util; print(" ".join(util.CONTROLLER_PYTHON_VERSIONS))')"
if [ "${python_version}" ]; then
# limit tests to a single python version