1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

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.
This commit is contained in:
Zdenek Kabelac 2013-09-16 11:05:03 +02:00
parent d6090a10f0
commit 51d3667cb5
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,8 @@
test -z "$BASH" || set -e -o pipefail
die() {
echo "$@" >&2
rm -f debug.log
echo -e "$@" >&2
return 1
}

View File

@ -15,7 +15,8 @@ IFS_NL='
'
die() {
echo "$@" >&2
rm -f debug.log
echo -e "$@" >&2
return 1
}