ansible/test/integration/targets/include_when_parent_is_static/runme.sh
Matt Clay 9126ac53e3 Add dynamic and static include tests. (#68200)
* Add dynamic and static include tests.

* Update task names for junit output.
2020-03-23 11:14:21 -05:00

13 lines
269 B
Bash
Executable file

#!/usr/bin/env bash
set -eu
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