From 7c315170c6828f5cf8e15c9f31f867dc8e834d38 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Wed, 13 Mar 2019 14:04:31 -0700 Subject: [PATCH] Reduce verbosity of blocks test. --- test/integration/targets/blocks/runme.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/integration/targets/blocks/runme.sh b/test/integration/targets/blocks/runme.sh index ebce8581f41..1c1cf546efe 100755 --- a/test/integration/targets/blocks/runme.sh +++ b/test/integration/targets/blocks/runme.sh @@ -2,10 +2,13 @@ set -eux +# This test does not use "$@" to avoid further increasing the verbosity beyond what is required for the test. +# Increasing verbosity from -vv to -vvv can increase the line count from ~400 to ~9K on our centos6 test container. + # remove old output log rm -f block_test.out # run the test and check to make sure the right number of completions was logged -ansible-playbook -vv main.yml -i ../../inventory "$@" | tee block_test.out +ansible-playbook -vv main.yml -i ../../inventory | tee block_test.out env python -c \ 'import sys, re; sys.stdout.write(re.sub("\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]", "", sys.stdin.read()))' \ block_test_wo_colors.out @@ -13,7 +16,7 @@ env python -c \ # cleanup the output log again, to make sure the test is clean rm -f block_test.out block_test_wo_colors.out # run test with free strategy and again count the completions -ansible-playbook -vv main.yml -i ../../inventory -e test_strategy=free "$@" | tee block_test.out +ansible-playbook -vv main.yml -i ../../inventory -e test_strategy=free | tee block_test.out env python -c \ 'import sys, re; sys.stdout.write(re.sub("\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]", "", sys.stdin.read()))' \ block_test_wo_colors.out @@ -21,7 +24,7 @@ env python -c \ # cleanup the output log again, to make sure the test is clean rm -f block_test.out block_test_wo_colors.out # run test with host_pinned strategy and again count the completions -ansible-playbook -vv main.yml -i ../../inventory -e test_strategy=host_pinned "$@" | tee block_test.out +ansible-playbook -vv main.yml -i ../../inventory -e test_strategy=host_pinned | tee block_test.out env python -c \ 'import sys, re; sys.stdout.write(re.sub("\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]", "", sys.stdin.read()))' \ block_test_wo_colors.out @@ -29,7 +32,7 @@ env python -c \ # run test that includes tasks that fail inside a block with always rm -f block_test.out block_test_wo_colors.out -ansible-playbook -vv block_fail.yml -i ../../inventory "$@" | tee block_test.out +ansible-playbook -vv block_fail.yml -i ../../inventory | tee block_test.out env python -c \ 'import sys, re; sys.stdout.write(re.sub("\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]", "", sys.stdin.read()))' \ block_test_wo_colors.out