mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: fix check lv_not_exist
Use 'not' to set proper 'expected return status' so we do not 'leak' debug logs printed for failing case.
This commit is contained in:
parent
54c982081f
commit
e94ab01940
@ -268,8 +268,7 @@ lv_not_exists() {
|
||||
else
|
||||
while [ $# -gt 1 ]; do
|
||||
shift
|
||||
lvl $vg/$1 &>/dev/null || continue
|
||||
die "$vg/$1 expected to not exist but it does!"
|
||||
not lvl $vg/$1 &>/dev/null || die "$vg/$1 expected to not exist but it does!"
|
||||
done
|
||||
fi
|
||||
rm -f debug.log
|
||||
|
Loading…
Reference in New Issue
Block a user