lvm-devel.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - tests: simplify
Date: Sun, 25 Jun 2023 11:04:04 +0000 (GMT)	[thread overview]
Message-ID: <20230625110404.831EA3858C62@sourceware.org> (raw)

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=fa434a18373e42108aed319d3257c935f510f2c3
Commit:        fa434a18373e42108aed319d3257c935f510f2c3
Parent:        b8db2c0a4a4bbfc39338141cd7eee67c05b2b31d
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Sun Jun 25 12:58:27 2023 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
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"


                 reply	other threads:[~2023-06-25 11:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230625110404.831EA3858C62@sourceware.org \
    --to=zkabelac@sourceware.org \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).