mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
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.
This commit is contained in:
parent
e5b3f60a74
commit
6472723ba8
4 changed files with 41 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -67,7 +67,14 @@ for version in "${python_versions[@]}"; do
|
|||
ci="windows/ci/minimal/"
|
||||
fi
|
||||
|
||||
# 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 windows-integration --color -v --retry-on-error "${ci}" --docker default --python "${version}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} \
|
||||
"${platforms[@]}" --changed-all-target "${changed_all_target}"
|
||||
"${platforms[@]}" --changed-all-target "${changed_all_target}" --remote-terminate "${terminate}"
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue