Skip to contentSkip to conversation

LVM2/test t-metadata.sh

PATCH [email protected] 1 participant 1 message Oct 26, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2010-10-26 12:52:25

Modified files:
test : t-metadata.sh

Log message:
Let's rely on the exit code and do not test for empty output.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-metadata.sh.diff?cvsroot=lvm2&r1=1.5&r2=1.6

test/t-metadata.sh +2 -4
@@ -36,13 +36,11 @@
 	lvcreate -n $lv1 -l 2 -i5 -I256 $vg
 	lvcreate -n $lv2 -m2 -l 2  $vg
 	#lvchange -an $vg
-	lvchange -an $vg/$lv1 >out$mdacp 2>&1 
-	lvchange -an $vg/$lv2 >>out$mdacp 2>&1 
-	test ! -s out$mdacp
+	lvchange -an $vg/$lv1
+	lvchange -an $vg/$lv2
 	vgchange -ay $vg
 	lvchange -vvvv -an $vg/$lv1 >out$mdacp 2>&1 
 	lvchange -vvvv -an $vg/$lv2 >>out$mdacp 2>&1 
-	eval run$mdacp=$(wc -l <out$mdacp)
 	vgremove -f $vg
 done
 not grep "Cached VG .* incorrect PV list" out0