From: Jean-Michel Vourgère Date: Thu, 24 Mar 2016 05:18:01 +0000 (+0100) Subject: Fixed tests when VERBOSE is on X-Git-Tag: v1.6.0~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F703%2Fhead;p=thirdparty%2Frrdtool-1.x.git 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. --- 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