summaryrefslogtreecommitdiff
path: root/test/utils/shippable/network.sh
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2017-11-14 17:08:48 -0800
committerGitHub <noreply@github.com>2017-11-14 17:08:48 -0800
commit6472723ba82fda84c2be9b28f895597528245abb (patch)
tree244ddbe933c5be7fbd4d2b27de2fe25a97cea43d /test/utils/shippable/network.sh
parente5b3f60a7400dfd7de6d38724a0de5e3882f87f3 (diff)
downloadansible-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-xtest/utils/shippable/network.sh9
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