1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: update lv_no_exists

On successful exit path remove debug.log file.
This commit is contained in:
Zdenek Kabelac 2014-09-15 13:45:43 +02:00
parent f435bef957
commit 10a448eb2f

View File

@ -259,8 +259,9 @@ lv_exists() {
lv_not_exists() {
local vg=$1
if test $# -le 1 ; then
lvl $vg &>/dev/null || return
die "$vg expected to not exist but it does!"
if lvl $vg &>/dev/null ; then
die "$vg expected to not exist but it does!"
fi
else
while [ $# -gt 1 ]; do
shift
@ -268,6 +269,7 @@ lv_not_exists() {
die "$vg/$1 expected to not exist but it does!"
done
fi
rm -f debug.log
}
pv_field() {