summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/ansible_log
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2024-02-15 00:53:52 +0100
committerGitHub <noreply@github.com>2024-02-15 00:53:52 +0100
commit437457e6d94186aae7b68e528be4f0fe075ddc90 (patch)
tree2128c98350750bbbf56ca10c7c72f140caa7ac36 /test/integration/targets/ansible_log
parentUpdates to interpreter discovery for 2.17 (#82420) (diff)
downloadansible-437457e6d94186aae7b68e528be4f0fe075ddc90.tar.xz
ansible-437457e6d94186aae7b68e528be4f0fe075ddc90.zip
Proxy more display methods (#81900)
Diffstat (limited to 'test/integration/targets/ansible_log')
-rwxr-xr-xtest/integration/targets/ansible_log/runme.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/integration/targets/ansible_log/runme.sh b/test/integration/targets/ansible_log/runme.sh
index e390e82470..84c58c4d9d 100755
--- a/test/integration/targets/ansible_log/runme.sh
+++ b/test/integration/targets/ansible_log/runme.sh
@@ -2,7 +2,7 @@
set -eux
-ALOG=${OUTPUT_DIR}/ansilbe_log_test.log
+ALOG=${OUTPUT_DIR}/ansible_log_test.log
ansible-playbook logit.yml
[ ! -f "${ALOG}" ]
@@ -10,3 +10,14 @@ ansible-playbook logit.yml
ANSIBLE_LOG_PATH=${ALOG} ansible-playbook logit.yml
[ -f "${ALOG}" ]
grep -q 'ping' "${ALOG}"
+
+rm "${ALOG}"
+# inline grep should fail if EXEC was present
+set +e
+ANSIBLE_LOG_PATH=${ALOG} ANSIBLE_LOG_VERBOSITY=3 ansible-playbook -v logit.yml | tee /dev/stderr | grep -q EXEC
+rc=$?
+set -e
+if [ "$rc" == "0" ]; then
+ false # fail if we found EXEC in stdout
+fi
+grep -q EXEC "${ALOG}"