mirror of
https://github.com/ansible/ansible.git
synced 2026-08-01 00:34:56 +02:00
* 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
14 lines
272 B
Bash
Executable File
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
|