summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2017-10-17 18:37:05 +0200
committerMatt Clay <matt@mystile.com>2017-10-17 18:53:54 +0200
commit264452e0a800ae2f8b30002f44d2520734e0f1ce (patch)
tree2a91e46655e7c1d264d61990159d650891820d6f /test/integration
parentReenable 'test' label for test related pull requests (#31472) (diff)
downloadansible-264452e0a800ae2f8b30002f44d2520734e0f1ce.tar.xz
ansible-264452e0a800ae2f8b30002f44d2520734e0f1ce.zip
Fix bad syntax in test_infra integration test.
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/targets/test_infra/runme.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/targets/test_infra/runme.sh b/test/integration/targets/test_infra/runme.sh
index b5932868e2..a0951ad2b5 100755
--- a/test/integration/targets/test_infra/runme.sh
+++ b/test/integration/targets/test_infra/runme.sh
@@ -7,7 +7,7 @@ PB_OUT=$(ansible-playbook -i inventory.local test_test_infra.yml)
APB_RC=$?
echo "$PB_OUT"
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 "$PB_OUT" | grep -F "fail 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=$?
echo "$PB_OUT"
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 "$PB_OUT" | grep -F "fail works (True)" || exit 1
echo "$PB_OUT" | grep -F "assert works (True)" || exit 1