mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
tests: update lv_no_exists
On successful exit path remove debug.log file.
This commit is contained in:
parent
f435bef957
commit
10a448eb2f
@ -259,8 +259,9 @@ lv_exists() {
|
|||||||
lv_not_exists() {
|
lv_not_exists() {
|
||||||
local vg=$1
|
local vg=$1
|
||||||
if test $# -le 1 ; then
|
if test $# -le 1 ; then
|
||||||
lvl $vg &>/dev/null || return
|
if lvl $vg &>/dev/null ; then
|
||||||
die "$vg expected to not exist but it does!"
|
die "$vg expected to not exist but it does!"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
while [ $# -gt 1 ]; do
|
while [ $# -gt 1 ]; do
|
||||||
shift
|
shift
|
||||||
@ -268,6 +269,7 @@ lv_not_exists() {
|
|||||||
die "$vg/$1 expected to not exist but it does!"
|
die "$vg/$1 expected to not exist but it does!"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
rm -f debug.log
|
||||||
}
|
}
|
||||||
|
|
||||||
pv_field() {
|
pv_field() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user