[lvm-devel] LVM2/test t-000-basic.sh

meyering at sourceware.org meyering at sourceware.org
Wed Dec 5 09:49:08 UTC 2007


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	meyering at sourceware.org	2007-12-05 09:49:08

Modified files:
	test           : t-000-basic.sh 

Log message:
	Avoid spurious test failure when compiled with readline support.
	
	* test/t-000-basic.sh: Invoke initial test of lvm with its "version"
	argument, so that the behavior of the tool doesn't depend on whether
	readline was enabled at configure time.
	
	Author: Jun'ichi Nomura <j-nomura at ce.jp.nec.com>
	Committer: Jim Meyering <meyering at redhat.com>

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-000-basic.sh.diff?cvsroot=lvm2&r1=1.1&r2=1.2

--- LVM2/test/t-000-basic.sh	2007/09/21 17:12:13	1.1
+++ LVM2/test/t-000-basic.sh	2007/12/05 09:49:08	1.2
@@ -13,8 +13,8 @@
 
 . ./test-lib.sh
 
-lvm >/dev/null 2>&1
-if test $? != 3; then
+lvm version >/dev/null 2>&1
+if test $? != 0; then
     echo >&2 'You do not seem to have built lvm yet.'
     exit 1
 fi




More information about the lvm-devel mailing list