Skip to contentSkip to conversation

LVM2/test t-pvcreate-operation-md.sh

PATCH [email protected] 1 participant 1 message Jul 21, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2010-07-21 14:12:48

Modified files:
test : t-pvcreate-operation-md.sh

Log message:
Don't fail t-pvcreate-operation-md if mdadm is broken.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvcreate-operation-md.sh.diff?cvsroot=lvm2&r1=1.6&r2=1.7

test/t-pvcreate-operation-md.sh +1 -1
@@ -35,7 +35,7 @@
     # sleeps offer hack to defeat: 'md: md127 still in use'
     # see: https://bugzilla.redhat.com/show_bug.cgi?id=509908#c25
     sleep 2
-    mdadm --stop $mddev
+    mdadm --stop $mddev || true
     if [ -b "$mddev" ]; then
         # mdadm doesn't always cleanup the device node
 	sleep 2