[PATCH] Revert "tests: wait for complete rebuild in integrity checks"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mingli Yu <Mingli.Yu@xxxxxxxxxxxxx>

This reverts commit e2a8e9dcf67a28bc722fa5ab2c49b0bc452d4d74
as the logic "check state 'U*'" will make the test enters
infinite loop especially in qemu env, so revert it to
use the previous logic "check wait" which also used
commonly by other tests such as tests/02r5grow, tests/07revert-grow
and etc.
---
 tests/01r5integ    | 2 +-
 tests/01raid6integ | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/01r5integ b/tests/01r5integ
index 48676a2..ffb30ce 100644
--- a/tests/01r5integ
+++ b/tests/01r5integ
@@ -27,7 +27,7 @@ do
      exit 1
     fi
     mdadm $md0 -a $i
-    while ! (check state 'U*'); do check wait; sleep 0.2; done
+   check wait
   done
   mdadm -S $md0
 done
diff --git a/tests/01raid6integ b/tests/01raid6integ
index 12f4d81..c6fcdae 100644
--- a/tests/01raid6integ
+++ b/tests/01raid6integ
@@ -47,10 +47,10 @@ do
          exit 1
        fi
        mdadm $md0 -a $first
-       while ! (check state 'U*_U*'); do check wait; sleep 0.2; done
+       check wait
     done
     mdadm $md0 -a $second
-    while ! (check state 'U*'); do check wait; sleep 0.2; done
+    check wait
     totest="$totest $second"
   done
   mdadm -S $md0
-- 
2.7.4




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux