1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Fix tests to work with vgscan --cache fixing inconsistent metadata.

This commit is contained in:
Peter Rajnoha 2012-03-28 07:46:35 +00:00
parent 7387343eab
commit b798ea409d
2 changed files with 8 additions and 5 deletions

View File

@ -32,11 +32,12 @@ check() {
grep resized lvs.out | grep 8192
}
# vgscan fixes up metadata
# vgscan fixes up metadata (needs --cache option for direct scan if lvmetad is used)
test -e LOCAL_LVMETAD && cache="--cache"
init
vgscan 2>&1 | tee cmd.out
vgscan $cache 2>&1 | tee cmd.out
grep "Inconsistent metadata found for VG $vg" cmd.out
vgscan 2>&1 | tee cmd.out
vgscan $cache 2>&1 | tee cmd.out
not grep "Inconsistent metadata found for VG $vg" cmd.out
check

View File

@ -12,9 +12,11 @@
. lib/test
check_() {
vgscan 2>&1 | tee vgscan.out
# vgscan needs --cache option for direct scan if lvmetad is used
test -e LOCAL_LVMETAD && cache="--cache"
vgscan $cache 2>&1 | tee vgscan.out
grep "Inconsistent metadata found for VG $vg" vgscan.out
vgscan 2>&1 | tee vgscan.out
vgscan $cache 2>&1 | tee vgscan.out
not grep "Inconsistent metadata found for VG $vg" vgscan.out
}