]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - test
DDF: write_init_super_ddf: don't zero superblocks for subarrays
[thirdparty/mdadm.git] / test
diff --git a/test b/test
index 1792e1d53716f1442d7caa044e47b2d385974218..8a6418d66bb63121f50e03bd2b0dd355889799b1 100755 (executable)
--- a/test
+++ b/test
@@ -95,6 +95,7 @@ do_setup() {
     eval dev$d=/dev/loop$d
     eval file$d=$targetdir/mdtest$d
     eval devlist=\"\$devlist \$dev$d\"
+    eval devlist$d=\"\$devlist\"
    #" <-- add this quote to un-confuse vim syntax highlighting
   done
   path0=$dev6
@@ -138,6 +139,10 @@ check() {
       grep -s "active $1 " /proc/mdstat > /dev/null || {
                echo >&2 "ERROR active $1 not found" ; cat /proc/mdstat ; exit 1;}
      ;;
+    algorithm )
+      grep -s " algorithm $2 " /proc/mdstat > /dev/null || {
+         echo >&2 "ERROR algorithm $2 not found"; cat /proc/mdstat; exit 1;}
+     ;;
     resync | recovery | reshape)
       sleep 0.5
       grep -s $1 /proc/mdstat > /dev/null || {
@@ -236,6 +241,7 @@ do_test() {
       _fail=0
     else
       log=log
+      cat $targetdir/stderr >> $targetdir/log
       if [ $exitonerror == 0 ]; then
          log=log-`basename $_script`
          mv $targetdir/log $targetdir/$log