Skip to contentSkip to conversation

stable-2.02 - tests: larger are needs to be disabled

PATCH Zdenek Kabelac 1 participant 1 message Nov 1, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a611f24751839b6ed63b130a75e403ac139eede9
Commit:        a611f24751839b6ed63b130a75e403ac139eede9
Parent:        4ae481bb301d8c8b3a8ea3725a0ae57f3d7bca5c
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Nov 1 16:11:01 2019 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Nov 1 16:12:39 2019 +0100

tests: larger are needs to be disabled

Since we 'disable' lvmetad via --repair of 'raid'
if such target is not present, we simply skip
all tests expecting disabled lvmetad.

---
 test/shell/lvmetad-disabled.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
test/shell/lvmetad-disabled.sh +1 -1
index 389d191..0a9f44c 100644
@@ -62,7 +62,6 @@ if aux have_raid 1 7 0 ; then
 lvcreate --type raid1 -m1 --nosync -l1 --alloc anywhere -n $lv2 $vg1
 lvconvert -y --repair $vg1/$lv2 2>&1 | tee out
 grep "WARNING: Disabling lvmetad cache" out
-fi
 
 pvs  -vvvv 2>&1 | tee out
 grep "$dev1" out
@@ -80,6 +79,7 @@ grep "WARNING: Not using lvmetad" out
 
 pvremove "$dev1" 2>&1 | tee out
 grep "WARNING: Not using lvmetad" out
+fi
 
 pvscan --cache  2>&1 | tee out
 not grep "WARNING: Disabling lvmetad cache" out