summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/async_extra_data/runme.sh
blob: 01bde32d9350b5ce45f1180f4156f6f291990378 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

set -eux

# Verify that extra data before module JSON output during async call is ignored.
ANSIBLE_DEBUG=0 LC_ALL=bogus ansible-playbook test_async.yml -i inventory -v "$@"
# Verify that the warning exists by examining debug output.
ANSIBLE_DEBUG=1 LC_ALL=bogus ansible-playbook test_async.yml -i inventory -v "$@" \
    | grep 'bash: warning: setlocale: LC_ALL: cannot change locale (bogus)' > /dev/null