]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - tests/01raid6integ
mdadm: add test case for raid5 write back cache
[thirdparty/mdadm.git] / tests / 01raid6integ
index 7123e2b804d99be8f39b12918634df9136ceb142..12f4d81b3eb4707745994c071f3da885d7f7b66b 100644 (file)
@@ -3,6 +3,11 @@
 # Create a 5 disk raid6, dump some data to it, then
 # sha1sum it with different pairs of devices failed
 
+if [ "$INTEGRITY" != "yes" ]; then
+  echo -ne 'skipping... '
+  exit 0
+fi
+
 layouts='ls rs la ra'
 lv=`uname -r`
 if expr $lv '>=' 2.6.30 > /dev/null
@@ -42,12 +47,11 @@ do
          exit 1
        fi
        mdadm $md0 -a $first
-       check wait
+       while ! (check state 'U*_U*'); do check wait; sleep 0.2; done
     done
     mdadm $md0 -a $second
-    check wait
+    while ! (check state 'U*'); do check wait; sleep 0.2; done
     totest="$totest $second"
   done
   mdadm -S $md0
 done
-