From 58773488e452fcced28d41fcc4494d628ca2671b Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 28 Dec 2016 12:43:00 +0100 Subject: [PATCH] tests: do not set -x by default on Travis (#1318) This is rather noisy, and the test runner should not require this anymore for debugging. [ci skip] --- tests/run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/run.sh b/tests/run.sh index 6413ed8e7..24caf274f 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -15,8 +15,8 @@ set -e export SHELL=/bin/sh export HOME=/dev/null -# Be verbose on Travis. -if [ "$CI" = true ]; then +VERBOSE=${VERBOSE-0} +if [ "$VERBOSE" = 1 ]; then set -x fi @@ -99,7 +99,7 @@ awesome_log=$tmp_files/_awesome_test.log echo "awesome_log: $awesome_log" wait_until_success() { - if [ "$CI" = true ]; then + if [ "$VERBOSE" = 1 ]; then set +x fi wait_count=60 # 60*0.05s => 3s. @@ -124,7 +124,7 @@ wait_until_success() { fi sleep 0.05 done - if [ "$CI" = true ]; then + if [ "$VERBOSE" = 1 ]; then set -x fi }