diff --git a/test/integration/targets/pull/runme.sh b/test/integration/targets/pull/runme.sh index e03edf7d040..7334df93ca5 100755 --- a/test/integration/targets/pull/runme.sh +++ b/test/integration/targets/pull/runme.sh @@ -30,7 +30,12 @@ if ! grep MAGICKEYWORD "${temp_log}"; then fi # test for https://github.com/ansible/ansible/issues/13681 -if grep '127\.0\.0\.1' "${temp_log}"; then +if egrep '127\.0\.0\.1.*ok' "${temp_log}"; then echo "Found host 127.0.0.1 in output. Only localhost should be present." exit 1 fi +# make sure one host was run +if ! egrep 'localhost.*ok' "${temp_log}"; then + echo "Did not find host localhost in output." + exit 1 +fi