Skip to contentSkip to conversation

(no subject)

PATCH New Dave Wysochanski 1 participant 2 messages Oct 8, 2009 1 message not in the archive

lore
Share & tools
lore
#2 lore raw

PATCH 1/1 Minor fixes to t-unknown-segment.sh.

In reply to a message not in the archive

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

---
 test/t-unknown-segment.sh |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
test/t-unknown-segment.sh +5 -5
index 30d6f6d..542257f 100644
@@ -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
Signature · 1 line
1.6.0.6