Skip to contentSkip to conversation

master - tests: pvscan-cache try to fix teardown problems

PATCH David Teigland 1 participant 1 message May 22, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=2036608423117626eb1905b38e09c767983b2ef4
Commit:        2036608423117626eb1905b38e09c767983b2ef4
Parent:        78afe75b08c01e70d52e42b62acf0d6eab7874dc
Author:        David Teigland <[email protected]>
AuthorDate:    Wed May 22 11:55:48 2019 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Wed May 22 11:55:48 2019 -0500

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.

---
 test/shell/pvscan-cache.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
test/shell/pvscan-cache.sh +3 -0
index e0576f9..8788594 100644
@@ -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