From 766e8fc864cae91c5d0525d6797e343a4edcda36 Mon Sep 17 00:00:00 2001 From: Peter Stamfest Date: Thu, 21 Aug 2014 00:52:01 +0200 Subject: [PATCH] allow to print the actual rrdtool calls run by a test by setting the VERBOSE env. variable to a non-empty string before calling the test --- tests/functions | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/functions b/tests/functions index 3923cf62..e4eb066a 100644 --- a/tests/functions +++ b/tests/functions @@ -24,6 +24,17 @@ if [ -z "$RRDTOOL" ] ; then esac fi +function verbose_rrdtool { + echo "$RRDTOOL_V" "$@" + "$RRDTOOL_V" "$@" +} + +if [ -n "$VERBOSE" ] ; then + RRDTOOL_V="$RRDTOOL" + RRDTOOL=verbose_rrdtool +fi + + DIFF="diff -u" function fail { -- 2.47.2