main - tests: simplify

Zdenek Kabelac <[email protected]>
Newsgroups gmane.linux.lvm.devel
Message-ID <[email protected]>
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=fa434a18373e42108aed319d3257c935f510f2c3
Commit:        fa434a18373e42108aed319d3257c935f510f2c3
Parent:        b8db2c0a4a4bbfc39338141cd7eee67c05b2b31d
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun Jun 25 12:58:27 2023 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sun Jun 25 13:02:36 2023 +0200

tests: simplify

---
 test/shell/vgsplit-cache.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/shell/vgsplit-cache.sh b/test/shell/vgsplit-cache.sh
index 202e4b562..65a711f75 100644
--- a/test/shell/vgsplit-cache.sh
+++ b/test/shell/vgsplit-cache.sh
@@ -20,6 +20,7 @@ SKIP_WITH_LVMPOLLD=1
 aux have_cache 1 3 0 || skip
 
 aux prepare_vg 7
+vgcfgbackup -f vgb $vg
 
 lvcreate -L5 -n $lv2 $vg "$dev2"
 lvcreate -L5 -n $lv3 $vg "$dev3"
@@ -78,7 +79,7 @@ vgremove -ff $vg1
 #
 # Check we handle pmspare for splitted VGs
 #
-aux prepare_vg 7
+vgcfgrestore -f vgb $vg
 
 # Create cache-pool and pmspare on single PV1
 lvcreate -L10 --type cache-pool $vg/cpool "$dev1"
@@ -100,7 +101,7 @@ vgremove $vg
 vgremove -f $vg1
 
 
-aux prepare_vg 7
+vgcfgrestore -f vgb $vg
 
 # Again - now with handling _pmspare by vgsplit
 lvcreate -L10 --type cache-pool $vg/cpool "$dev1"

--
lvm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/lvm-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.