Add support for ansible-test --coverage-check. (#53573)

This commit is contained in:
Matt Clay
2019-03-11 15:13:09 -07:00
committed by GitHub
parent 9ff25c0167
commit 887ab35656
8 changed files with 49 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ set -o pipefail -eux
ansible-test network-integration --explain ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} 2>&1 \
| { grep ' network-integration: .* (targeted)$' || true; } > /tmp/network.txt
if [ "${COVERAGE}" ]; then
if [ "${COVERAGE}" == "--coverage" ]; then
# when on-demand coverage is enabled, force tests to run for all network platforms
echo "coverage" > /tmp/network.txt
fi