From 5c8520fbd9905cab1e97ee6e42d962ce3c7e9832 Mon Sep 17 00:00:00 2001 From: Sloane Hertel Date: Tue, 28 Jul 2020 13:02:43 -0400 Subject: [PATCH] Fix verbosity for var_templating test (#70943) * Fix verbosity for var_templating test Display the subtests * fix specificity and set ANSIBLE_BECOME_ALLOW_SAME_USER Co-authored-by: Matt Martz Co-authored-by: Matt Martz --- test/integration/targets/var_templating/runme.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/targets/var_templating/runme.sh b/test/integration/targets/var_templating/runme.sh index 0d3ac6bb1af..9363cb3ab29 100755 --- a/test/integration/targets/var_templating/runme.sh +++ b/test/integration/targets/var_templating/runme.sh @@ -14,4 +14,5 @@ ansible-playbook undall.yml -i inventory -v "$@" # test hostvars templating ansible-playbook task_vars_templating.yml -v "$@" -ansible-playbook test_connection_vars.yml -v "$@" 2>&1 | grep 'sudo' +# there should be an attempt to use 'sudo' in the connection debug output +ANSIBLE_BECOME_ALLOW_SAME_USER=true ansible-playbook test_connection_vars.yml -vvvv "$@" | tee /dev/stderr | grep 'sudo \-H \-S'