summaryrefslogtreecommitdiff
path: root/test/utils
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2020-02-23 19:48:53 -0800
committerMatt Clay <matt@mystile.com>2020-02-23 20:43:05 -0800
commit4a885072af3a77f26783796363b875182ef0b68e (patch)
tree0e6e4fcfb9dc7b92cb39796d061a556ac620f637 /test/utils
parenta64b56207148650819cf6d3b3eb98816b4cae84e (diff)
downloadansible-4a885072af3a77f26783796363b875182ef0b68e.tar.gz
Split vyos tests to avoid timeouts with coverage.
Diffstat (limited to 'test/utils')
-rwxr-xr-xtest/utils/shippable/network.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/utils/shippable/network.sh b/test/utils/shippable/network.sh
index 43dddd5866..35a0bff59d 100755
--- a/test/utils/shippable/network.sh
+++ b/test/utils/shippable/network.sh
@@ -7,9 +7,10 @@ IFS='/:' read -ra args <<< "$1"
platform="${args[0]}"
version="${args[1]}"
+python_version="${args[2]}"
-if [ "${#args[@]}" -gt 2 ]; then
- target="shippable/${platform}/group${args[2]}/"
+if [ "${#args[@]}" -gt 3 ]; then
+ target="shippable/${platform}/group${args[3]}/"
else
target="shippable/${platform}/"
fi
@@ -24,6 +25,11 @@ python_versions=(
3.6
)
+if [ "${python_version}" ]; then
+ # limit tests to a single python version
+ python_versions=("${python_version}")
+fi
+
for python_version in "${python_versions[@]}"; do
# terminate remote instances on the final python version tested
if [ "${python_version}" = "${python_versions[-1]}" ]; then