diff options
author | Matt Clay <matt@mystile.com> | 2020-02-24 04:48:53 +0100 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2020-02-24 05:43:05 +0100 |
commit | 4a885072af3a77f26783796363b875182ef0b68e (patch) | |
tree | 0e6e4fcfb9dc7b92cb39796d061a556ac620f637 /test/utils | |
parent | Fix up network testing on Shippable. (#67678) (diff) | |
download | ansible-4a885072af3a77f26783796363b875182ef0b68e.tar.xz ansible-4a885072af3a77f26783796363b875182ef0b68e.zip |
Split vyos tests to avoid timeouts with coverage.
Diffstat (limited to 'test/utils')
-rwxr-xr-x | test/utils/shippable/network.sh | 10 |
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 |