From 51d3667cb559e77cd43556851922cb5bef0fc9ae Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 16 Sep 2013 11:05:03 +0200 Subject: [PATCH] tests: update die 'die' evaluates given string - so \n could be used for multiline error report Also remove debug.log since the command finished properly when we call 'die' Note: we should not call 'die' after lvm command failure. --- test/lib/check.sh | 3 ++- test/lib/utils.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/lib/check.sh b/test/lib/check.sh index 6eedb4727..ecb0721e6 100644 --- a/test/lib/check.sh +++ b/test/lib/check.sh @@ -25,7 +25,8 @@ test -z "$BASH" || set -e -o pipefail die() { - echo "$@" >&2 + rm -f debug.log + echo -e "$@" >&2 return 1 } diff --git a/test/lib/utils.sh b/test/lib/utils.sh index 47e89bf62..0f58b25ae 100644 --- a/test/lib/utils.sh +++ b/test/lib/utils.sh @@ -15,7 +15,8 @@ IFS_NL=' ' die() { - echo "$@" >&2 + rm -f debug.log + echo -e "$@" >&2 return 1 } -- 2.43.5