[lvm-devel] Re: LVM2/test t-pvcreate-operation-md.sh

Mike Snitzer snitzer at redhat.com
Mon Sep 14 01:40:19 UTC 2009


On Sun, Sep 13 2009 at  3:28pm -0400,
mbroz at sourceware.org <mbroz at sourceware.org> wrote:

> CVSROOT:	/cvs/lvm2
> Module name:	LVM2
> Changes by:	mbroz at sourceware.org	2009-09-13 19:28:00
> 
> Modified files:
> 	test           : t-pvcreate-operation-md.sh 
> 
> Log message:
> 	Do not run mdadm tests if MD module is not loaded.
> 
> Patches:
> http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvcreate-operation-md.sh.diff?cvsroot=lvm2&r1=1.1&r2=1.2
> 
> --- LVM2/test/t-pvcreate-operation-md.sh	2009/08/04 16:02:39	1.1
> +++ LVM2/test/t-pvcreate-operation-md.sh	2009/09/13 19:28:00	1.2
> @@ -14,6 +14,7 @@
>  which perl || exit 200
>  which awk || exit 200
>  which cut || exit 200
> +test -f /proc/mdstat || exit 200
>  
>  . ./test-utils.sh
>  
> 

We might try loading the raid0 module if it isn't loaded (grep for raid0
in /proc/mdstat)?  And if that fails skip this test?




More information about the lvm-devel mailing list