mirror of https://github.com/ansible/ansible.git
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.
14 lines
491 B
Bash
14 lines
491 B
Bash
8 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -eux
|
||
|
|
||
|
# we are looking to verify the callback for v2_retry_runner gets a correct task name, include
|
||
|
# if the value needs templating based on results of previous tasks
|
||
|
OUTFILE="callback_retry_task_name.out"
|
||
|
trap 'rm -rf "${OUTFILE}"' EXIT
|
||
|
|
||
|
EXPECTED_REGEX="^.*TASK.*18236 callback task template fix OUTPUT 2"
|
||
|
ansible-playbook "$@" -i ../../inventory test.yml | tee "${OUTFILE}"
|
||
|
echo "Grepping for ${EXPECTED_REGEX} in stdout."
|
||
|
grep -e "${EXPECTED_REGEX}" "${OUTFILE}"
|