1
0
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:
Zdenek Kabelac 2015-09-10 17:19:30 +02:00
parent 54c982081f
commit e94ab01940

View File

@ -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