LVM2/test t-metadata.sh

[email protected] <[email protected]>
Newsgroups dev.linux.lists.lvm-devel
Message-ID <[email protected]>
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

--- LVM2/test/t-metadata.sh	2010/08/16 23:21:20	1.5
+++ LVM2/test/t-metadata.sh	2010/10/26 12:52:25	1.6
@@ -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
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.