You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/templating-syntax-errors/runme.sh

14 lines
290 B
Bash

#!/usr/bin/env bash
set -eux
ansible-playbook template-file.yml "${@}" | tee template-file.out
echo "Verifying contents of error reports ..."
# verify the template-file error report is correct
grep 'template-file.j2:5' template-file.out
grep '5 {% sorry' template-file.out
echo "PASS"