From: David Teigland Date: Wed, 22 May 2019 16:55:48 +0000 (-0500) Subject: tests: pvscan-cache try to fix teardown problems X-Git-Tag: v2_03_03~18 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=2036608423117626eb1905b38e09c767983b2ef4;p=lvm2.git tests: pvscan-cache try to fix teardown problems teardown after the test was failing, probably because of uncoordinated udev actions running on the test system. Try to avoid this by doing some work before teardown. --- diff --git a/test/shell/pvscan-cache.sh b/test/shell/pvscan-cache.sh index e0576f905..87885941b 100644 --- a/test/shell/pvscan-cache.sh +++ b/test/shell/pvscan-cache.sh @@ -75,4 +75,7 @@ aux enable_dev "$dev2" pvscan --cache check pv_field "$dev1" vg_name "$vg1" +vgchange -an $vg1 +lvremove $vg1/$lv1 + vgremove -ff $vg1