diff options
author | Matt Clay <matt@mystile.com> | 2017-11-14 17:08:48 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-14 17:08:48 -0800 |
commit | 6472723ba82fda84c2be9b28f895597528245abb (patch) | |
tree | 244ddbe933c5be7fbd4d2b27de2fe25a97cea43d /test/utils/shippable/network.sh | |
parent | e5b3f60a7400dfd7de6d38724a0de5e3882f87f3 (diff) | |
download | ansible-6472723ba82fda84c2be9b28f895597528245abb.tar.gz |
Add missing ansible-test --remote-terminate support. (#32918)
* Expand ansible-test --remote-terminate support:
- windows-integration
- network-integration
These commands previously accepted the option, but did not support it.
* Terminate windows and network instances when done.
Diffstat (limited to 'test/utils/shippable/network.sh')
-rwxr-xr-x | test/utils/shippable/network.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/utils/shippable/network.sh b/test/utils/shippable/network.sh index 079a01df5b..8ae99b0642 100755 --- a/test/utils/shippable/network.sh +++ b/test/utils/shippable/network.sh @@ -41,7 +41,14 @@ else fi for version in "${python_versions[@]}"; do + # terminate remote instances on the final python version tested + if [ "${version}" = "${python_versions[-1]}" ]; then + terminate="always" + else + terminate="never" + fi + # shellcheck disable=SC2086 ansible-test network-integration --color -v --retry-on-error "${target}" --docker default --python "${version}" \ - ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} "${platforms[@]}" + ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} "${platforms[@]}" --remote-terminate "${terminate}" done |