From 078573dc2cdf2b5a649f29e6b416cb24eaeca3de Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Mon, 24 May 2010 15:28:45 +0000 Subject: [PATCH] Skip t-pvcreate-operation-md if mdadm fails to create the required device. --- test/t-pvcreate-operation-md.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.43.5