From: Petr Rockai Date: Mon, 24 May 2010 15:28:45 +0000 (+0000) Subject: Skip t-pvcreate-operation-md if mdadm fails to create the required device. X-Git-Tag: v2_02_91~1881 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=1a36448da35d5dee4360e4fce3302667c9075d48;p=lvm2.git Skip t-pvcreate-operation-md if mdadm fails to create the required device. --- diff --git a/test/t-pvcreate-operation-md.sh b/test/t-pvcreate-operation-md.sh index 061a472a9..bd73007ac 100644 --- a/test/t-pvcreate-operation-md.sh +++ b/test/t-pvcreate-operation-md.sh @@ -45,9 +45,10 @@ cleanup_md() { } # create 2 disk MD raid0 array (stripe_width=128K) -[ -b "$mddev" ] && exit 200 +test -b "$mddev" && exit 200 mdadm --create $mddev --auto=md --level 0 --raid-devices=2 --chunk 64 $dev1 $dev2 trap 'aux cleanup_md' EXIT # cleanup this MD device at the end of the test +test -b "$mddev" || exit 200 # Test alignment of PV on MD without any MD-aware or topology-aware detection # - should treat $mddev just like any other block device