From fcb8a7a5fdfa4ff27469e2cd9621a4602521fcf9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Michel=20Vourg=C3=A8re?= Date: Thu, 24 Mar 2016 06:18:01 +0100 Subject: [PATCH] Fixed tests when VERBOSE is on Define RRDTOOL_V from RRDTOOL, but only after RRDTOOL is defined. Output the header showing witch command is run on stderr, not stdout. --- tests/functions | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/functions b/tests/functions index 4ddc96bd..f12af726 100644 --- a/tests/functions +++ b/tests/functions @@ -68,7 +68,7 @@ function valgrind { } function verbose_rrdtool { - echo "$RRDTOOL_V" "$@" + echo "$RRDTOOL_V" "$@" >&2 "$RRDTOOL_V" "$@" } @@ -142,11 +142,6 @@ function exit_if_cached_running { fi } -if [ -n "$VERBOSE" ] ; then - RRDTOOL_V="$RRDTOOL" - RRDTOOL=verbose_rrdtool -fi - if [ -z "$RRDTOOL" ] ; then RRDTOOL=$TOP_BUILDDIR/src/rrdtool RRDCACHED=$TOP_BUILDDIR/src/rrdcached @@ -178,3 +173,8 @@ if [ -z "$RRDTOOL" ] ; then run_cached "$STANDARD_RRDCACHED" fi fi + +if [ -n "$VERBOSE" ] ; then + RRDTOOL_V="$RRDTOOL" + RRDTOOL=verbose_rrdtool +fi -- 2.47.2