[2.11] Log `runme.sh` execution in integration tests (#79285)

* 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

(cherry picked from commit 6674c43edd)

* Delete a bad PR #79263 change note

(cherry picked from commit 9cfb3f73e8)
pull/79328/head
Sviatoslav Sydorenko 2 years ago committed by GitHub
parent e7b39bd1bd
commit de7fe7814a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -eu -o pipefail set -eux -o pipefail
# tests must be executed outside of the ansible source tree # tests must be executed outside of the ansible source tree
# otherwise ansible-test will test the ansible source instead of the test collection # otherwise ansible-test will test the ansible source instead of the test collection

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -eu set -eux
ansible-playbook playbook.yml "$@" > output.log 2>&1 || true ansible-playbook playbook.yml "$@" > output.log 2>&1 || true

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -eu set -eux
ansible-playbook playbook.yml "$@" > output.log 2>&1 || true ansible-playbook playbook.yml "$@" > output.log 2>&1 || true

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -eu set -eux -o pipefail
cleanup() { cleanup() {
echo "Cleanup" echo "Cleanup"

@ -1,9 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -eu set -eux -o pipefail
# Using set -x for this test causes the Shippable console to stop receiving updates and the job to time out for macOS.
# Once that issue is resolved the set -x option can be added above.
# Run these using en_US.UTF-8 because list-tasks is a user output function and so it tailors its output to the # Run these using en_US.UTF-8 because list-tasks is a user output function and so it tailors its output to the
# user's locale. For unicode tags, this means replacing non-ascii chars with "?" # user's locale. For unicode tags, this means replacing non-ascii chars with "?"

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -eu set -eux
ANSIBLE_ROLES_PATH=../ ansible-playbook --vault-password-file vault-password runme.yml -i inventory "${@}" ANSIBLE_ROLES_PATH=../ ansible-playbook --vault-password-file vault-password runme.yml -i inventory "${@}"

Loading…
Cancel
Save