@ -15,8 +15,6 @@ if [ "${res}" -eq 0 ] ; then
exit 1
fi
set -ux
ansible-playbook -i inventory " $@ " always_block.yml | tee out.txt | grep 'any_errors_fatal_always_block_start'
res = $?
cat out.txt
@ -25,8 +23,6 @@ if [ "${res}" -ne 0 ] ; then
exit 1
fi
set -ux
for test_name in test_include_role test_include_tasks; do
ansible-playbook -i inventory " $@ " -e test_name = $test_name 50897.yml | tee out.txt | grep 'any_errors_fatal_this_should_never_be_reached'
res = $?
@ -36,6 +32,8 @@ for test_name in test_include_role test_include_tasks; do
fi
done
set -e
ansible-playbook -i inventory " $@ " 31543.yml | tee out.txt
[ " $( grep -c 'SHOULD NOT HAPPEN' out.txt) " -eq 0 ]
@ -47,5 +45,5 @@ ansible-playbook -i inventory "$@" 73246.yml | tee out.txt
ansible-playbook -i inventory " $@ " 80981.yml | tee out.txt
[ " $( grep -c 'SHOULD NOT HAPPEN' out.txt) " -eq 0 ]
[ " $( grep -c 'rescue ' out.txt) " -eq 2 ]
[ " $( grep -c 'rescue dd ' out.txt) " -eq 2 ]
[ " $( grep -c 'recovered' out.txt) " -eq 2 ]