From 2b76fb39286f5c07d1d62bbf0a250e57c614d3ad Mon Sep 17 00:00:00 2001 From: Peter Stamfest Date: Wed, 5 Mar 2014 20:48:38 +0100 Subject: [PATCH] Allow to ask for continuing tests for intergration testing --- tests/functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/functions b/tests/functions index 269b14d2..1b8d4d71 100644 --- a/tests/functions +++ b/tests/functions @@ -4,10 +4,12 @@ BASEDIR=$(dirname $0) RRDTOOL=$BASEDIR/../src/rrdtool DIFF="diff -u" -INTERACTIVE= function fail { echo >&2 "FAILED:" "$@" + if [ -n "$CONTINUE" ] ; then + return + fi if [ -n "$INTERACTIVE" ] ; then read -p "Continue? (y/n)" YN if [ "$YN" != 'y' ] ; then -- 2.47.3