mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Run all Windows tests if change detection disabled (#30320)
* Run all Windows tests if change detection disabled * Run all Windows versions if change detection disabled
This commit is contained in:
parent
62f49120cd
commit
765718bed2
1 changed files with 3 additions and 5 deletions
|
@ -19,7 +19,7 @@ python_versions=(
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
ansible-test windows-integration "${target}" --explain ${CHANGED:+"$CHANGED"} 2>&1 | { grep ' windows-integration: .* (targeted)$' || true; } > /tmp/windows.txt
|
ansible-test windows-integration "${target}" --explain ${CHANGED:+"$CHANGED"} 2>&1 | { grep ' windows-integration: .* (targeted)$' || true; } > /tmp/windows.txt
|
||||||
|
|
||||||
if [ -s /tmp/windows.txt ]; then
|
if [ -s /tmp/windows.txt ] || [ "${CHANGED:+$CHANGED}" == "" ]; then
|
||||||
echo "Detected changes requiring integration tests specific to Windows:"
|
echo "Detected changes requiring integration tests specific to Windows:"
|
||||||
cat /tmp/windows.txt
|
cat /tmp/windows.txt
|
||||||
|
|
||||||
|
@ -62,10 +62,8 @@ for version in "${python_versions[@]}"; do
|
||||||
changed_all_target="none"
|
changed_all_target="none"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# only run smoketest tests for group1
|
# without change detection enabled run entire test group
|
||||||
if [ "${target}" != "windows/ci/group1/" ]; then continue; fi
|
ci="${target}"
|
||||||
# without change detection enabled run only smoketest tests
|
|
||||||
ci="windows/ci/smoketest/"
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# only run minimal tests for group1
|
# only run minimal tests for group1
|
||||||
|
|
Loading…
Reference in a new issue