All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Wysochanski <dwysocha@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH] Minor fixes to t-unknown-segment.sh.
Date: Wed,  7 Oct 2009 21:44:28 -0400	[thread overview]
Message-ID: <1254966268-21710-1-git-send-email-dwysocha@redhat.com> (raw)
In-Reply-To: <87k4z79b9p.fsf_-_@twilight.int.mornfall.net>

Need to grep out "Generated" line or the test failed for me.
Qualify vgcfgbackup to only backup the vg we've created.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
---
 test/t-unknown-segment.sh |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/t-unknown-segment.sh b/test/t-unknown-segment.sh
index 30d6f6d..542257f 100644
--- a/test/t-unknown-segment.sh
+++ b/test/t-unknown-segment.sh
@@ -16,16 +16,16 @@ aux prepare_vg 4
 lvcreate -l 1 -n $lv1 $vg
 lvcreate -l 2 -m 1 -n $lv2 $vg
 
-vgcfgbackup -f bak0
+vgcfgbackup -f bak0 $vg
 sed -e 's,striped,unstriped,;s,mirror,unmirror,' -i.orig bak0
 vgcfgrestore -f bak0 $vg
 
-vgcfgbackup -f bak1
+vgcfgbackup -f bak1 $vg
 cat bak1
 sed -e 's,unstriped,striped,;s,unmirror,mirror,' -i.orig bak1
 vgcfgrestore -f bak1 $vg
-vgcfgbackup -f bak2
+vgcfgbackup -f bak2 $vg
 
-egrep -v 'description|seqno|creation_time' < bak0.orig > a
-egrep -v 'description|seqno|creation_time' < bak2 > b
+egrep -v 'description|seqno|creation_time|Generated' < bak0.orig > a
+egrep -v 'description|seqno|creation_time|Generated' < bak2 > b
 diff -u a b
-- 
1.6.0.6



      parent reply	other threads:[~2009-10-08  1:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87k4z79b9p.fsf_-_@twilight.int.mornfall.net>
2009-10-08  1:37 ` (no subject) Dave Wysochanski
2009-10-08  1:44 ` Dave Wysochanski [this message]

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=1254966268-21710-1-git-send-email-dwysocha@redhat.com \
    --to=dwysocha@redhat.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.