diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2024-06-25 15:24:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-25 15:24:24 +0200 |
commit | 0d28705ce5c6a4048645e919efd218a4ba8e5da1 (patch) | |
tree | 877ba99fe9ae2c2f40393fb999579a84b573ce05 /test | |
parent | Ensure the correct connection name is shown in results (#83354) (diff) | |
download | ansible-0d28705ce5c6a4048645e919efd218a4ba8e5da1.tar.xz ansible-0d28705ce5c6a4048645e919efd218a4ba8e5da1.zip |
linear strategy, show templated task name on start (#83473)
we only templated in some cases but when queueing we could get an untemplated name for the 'on start' event.
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration/targets/callback_results/runme.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/integration/targets/callback_results/runme.sh b/test/integration/targets/callback_results/runme.sh index 6b051013ba..fe3a0a6a34 100755 --- a/test/integration/targets/callback_results/runme.sh +++ b/test/integration/targets/callback_results/runme.sh @@ -16,5 +16,11 @@ grep -e "${EXPECTED_REGEX}" "${OUTFILE}" # test connection tracking EXPECTED_CONNECTION='{"testhost":{"ssh":4}}' OUTPUT_TAIL=$(tail -n5 ${OUTFILE} | tr -d '[:space:]') +echo "Checking for connection strin ${OUTPUT_TAIL} in stdout." [ "${EXPECTED_CONNECTION}" == "${OUTPUT_TAIL}" ] echo $? + +# check variables are interpolated in 'started' +UNTEMPLATED_STARTED="^.*\[started .*{{.*}}.*$" +echo "Checking we dont have untemplated started in stdout." +grep -e "${UNTEMPLATED_STARTED}" "${OUTFILE}" || exit 0 |