Files
Sviatoslav SydorenkoandGitHub 6674c43edd Log runme.sh execution in integration tests (#79263)
* Log `runme.sh` execution in integration tests

This patch adds `set -x` where it's missing in the integration tests.
It also enables `pipefail` in `runme.sh` scripts that use pipes.

* Add a change note for PR #79263
2022-11-01 11:10:05 -04:00

14 lines
272 B
Bash
Executable File

#!/usr/bin/env bash
set -eux
ansible-playbook playbook.yml "$@" > output.log 2>&1 || true
if grep "task should always execute" output.log >/dev/null; then
echo "Test passed (playbook failed with expected output, output not shown)."
exit 0
fi
cat output.log
exit 1