summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2019-05-22 11:55:48 -0500
committerDavid Teigland <teigland@redhat.com>2019-05-22 11:55:48 -0500
commit2036608423117626eb1905b38e09c767983b2ef4 (patch)
tree4a7fdd755e6d55f8ca6e25582c8b854fbe19d3c5
parent78afe75b08c01e70d52e42b62acf0d6eab7874dc (diff)
downloadlvm2-2036608423117626eb1905b38e09c767983b2ef4.tar.gz
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.
-rw-r--r--test/shell/pvscan-cache.sh3
1 files changed, 3 insertions, 0 deletions
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