diff options
Diffstat (limited to 'test/integration/targets/include_when_parent_is_static/runme.sh')
-rwxr-xr-x | test/integration/targets/include_when_parent_is_static/runme.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/targets/include_when_parent_is_static/runme.sh b/test/integration/targets/include_when_parent_is_static/runme.sh new file mode 100755 index 0000000..0b66f6b --- /dev/null +++ b/test/integration/targets/include_when_parent_is_static/runme.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +set -eux + +ansible-playbook playbook.yml "$@" > output.log 2>&1 || true + +if grep "intentional syntax error" output.log >/dev/null; then + echo "Test passed (playbook failed with expected output, output not shown)." + exit 0 +fi + +cat output.log +exit 1 |