[lvm-devel] master - tests: pvscan-cache try to fix teardown problems

David Teigland teigland at sourceware.org
Wed May 22 16:58:00 UTC 2019


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=2036608423117626eb1905b38e09c767983b2ef4
Commit:        2036608423117626eb1905b38e09c767983b2ef4
Parent:        78afe75b08c01e70d52e42b62acf0d6eab7874dc
Author:        David Teigland <teigland at redhat.com>
AuthorDate:    Wed May 22 11:55:48 2019 -0500
Committer:     David Teigland <teigland at redhat.com>
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(-)

diff --git a/test/shell/pvscan-cache.sh b/test/shell/pvscan-cache.sh
index e0576f9..8788594 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




More information about the lvm-devel mailing list