Show ansible-test --explain errors in CI.
This commit is contained in:
parent
5392d8697d
commit
13bbfacb04
2 changed files with 4 additions and 4 deletions
|
@ -3,8 +3,8 @@
|
||||||
set -o pipefail -eux
|
set -o pipefail -eux
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
ansible-test network-integration --explain ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} 2>&1 \
|
ansible-test network-integration --explain ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} > /tmp/explain.txt 2>&1 || { cat /tmp/explain.txt && false; }
|
||||||
| { grep ' network-integration: .* (targeted)$' || true; } > /tmp/network.txt
|
{ grep ' network-integration: .* (targeted)$' /tmp/explain.txt || true; } > /tmp/network.txt
|
||||||
|
|
||||||
if [ "${COVERAGE}" == "--coverage" ]; then
|
if [ "${COVERAGE}" == "--coverage" ]; then
|
||||||
# when on-demand coverage is enabled, force tests to run for all network platforms
|
# when on-demand coverage is enabled, force tests to run for all network platforms
|
||||||
|
|
|
@ -28,8 +28,8 @@ python_versions=(
|
||||||
single_version=2012-R2
|
single_version=2012-R2
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
ansible-test windows-integration --explain ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} 2>&1 \
|
ansible-test windows-integration --explain ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} > /tmp/explain.txt 2>&1 || { cat /tmp/explain.txt && false; }
|
||||||
| { grep ' windows-integration: .* (targeted)$' || true; } > /tmp/windows.txt
|
{ grep ' windows-integration: .* (targeted)$' /tmp/explain.txt || true; } > /tmp/windows.txt
|
||||||
|
|
||||||
if [ -s /tmp/windows.txt ] || [ "${CHANGED:+$CHANGED}" == "" ]; 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:"
|
||||||
|
|
Loading…
Reference in a new issue