]> sourceware.org Git - lvm2.git/commitdiff
Skip t-pvcreate-operation-md if mdadm fails to create the required device.
authorPetr Rockai <prockai@redhat.com>
Mon, 24 May 2010 15:28:45 +0000 (15:28 +0000)
committerPetr Rockai <prockai@redhat.com>
Mon, 24 May 2010 15:28:45 +0000 (15:28 +0000)
test/t-pvcreate-operation-md.sh

index 061a472a94c93e620893920ba1d7b546c19fb168..bd73007ac3f63dc0be532366cfa7e8f22c4425a2 100644 (file)
@@ -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
This page took 0.038949 seconds and 5 git commands to generate.