From ed090eb1094472dcef755e6ca319310e5a0e7eac Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Thu, 12 Mar 2015 11:26:07 +0000 Subject: [PATCH] Adjust method for trimming ansible output debug information This patch adjusts the method introduced in I98fb57a56c1b7ddd6558e265cf6e65b159a05123 to trim the debug information from the ansible output. This adjustment allows the output to come to the console immediately, instead of piping to a file and doing the processing after the ansible run is complete. Change-Id: I515adcad34ef76b8ea47fe90bc6572fb3aec1d2c Partial-bug: #1425482 --- scripts/gate-check-commit.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/gate-check-commit.sh b/scripts/gate-check-commit.sh index ed3761e707..15fb5608c6 100755 --- a/scripts/gate-check-commit.sh +++ b/scripts/gate-check-commit.sh @@ -82,9 +82,7 @@ if [ "${RUN_PLAYBOOKS}" == "yes" ]; then print } " - source $(dirname ${0})/run-playbooks.sh > ansible-logs.tmp - awk "${strip_debug}" < ansible-logs.tmp - rm -f ansible-logs.tmp + bash $(dirname ${0})/run-playbooks.sh | awk "${strip_debug}" fi # Run the tempest tests if required