mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix bad syntax in test_infra integration test.
This commit is contained in:
parent
2c5ce656b0
commit
264452e0a8
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ PB_OUT=$(ansible-playbook -i inventory.local test_test_infra.yml)
|
||||||
APB_RC=$?
|
APB_RC=$?
|
||||||
echo "$PB_OUT"
|
echo "$PB_OUT"
|
||||||
echo "rc was $APB_RC (must be non-zero)"
|
echo "rc was $APB_RC (must be non-zero)"
|
||||||
[ $$APB_RC -ne 0 ]
|
[ ${APB_RC} -ne 0 ]
|
||||||
echo "ensure playbook output shows assert/fail works (True)"
|
echo "ensure playbook output shows assert/fail works (True)"
|
||||||
echo "$PB_OUT" | grep -F "fail works (True)" || exit 1
|
echo "$PB_OUT" | grep -F "fail works (True)" || exit 1
|
||||||
echo "$PB_OUT" | grep -F "assert works (True)" || exit 1
|
echo "$PB_OUT" | grep -F "assert works (True)" || exit 1
|
||||||
|
@ -17,7 +17,7 @@ PB_OUT=$(ansible-playbook -i ../../inventory test_test_infra.yml "$@")
|
||||||
APB_RC=$?
|
APB_RC=$?
|
||||||
echo "$PB_OUT"
|
echo "$PB_OUT"
|
||||||
echo "rc was $APB_RC (must be non-zero)"
|
echo "rc was $APB_RC (must be non-zero)"
|
||||||
[ $$APB_RC -ne 0 ]
|
[ ${APB_RC} -ne 0 ]
|
||||||
echo "ensure playbook output shows assert/fail works (True)"
|
echo "ensure playbook output shows assert/fail works (True)"
|
||||||
echo "$PB_OUT" | grep -F "fail works (True)" || exit 1
|
echo "$PB_OUT" | grep -F "fail works (True)" || exit 1
|
||||||
echo "$PB_OUT" | grep -F "assert works (True)" || exit 1
|
echo "$PB_OUT" | grep -F "assert works (True)" || exit 1
|
||||||
|
|
Loading…
Reference in a new issue