summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-01-31 16:59:40 +1100
committerNeilBrown <neilb@suse.de>2011-01-31 16:59:40 +1100
commit0d711ba4d3b7fc72f6d02e3d452beb117379040b (patch)
treeae23077b830a0fe405235689c823e4f4947f7e51 /test
parentca4fe0bfd3a070be087eb61da395c1d156cc95ac (diff)
Allow test to detect 'resync=DELAYED' state
There is no space around the '=' when resync is delayed, so allow for that in pattern matching. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'test')
-rwxr-xr-xtest4
1 files changed, 2 insertions, 2 deletions
diff --git a/test b/test
index a94aef32..277f94a8 100755
--- a/test
+++ b/test
@@ -127,14 +127,14 @@ check() {
nosync )
sleep 0.5
- if grep -s -E '(resync|recovery|reshape) =' > /dev/null /proc/mdstat ; then
+ if grep -s -E '(resync|recovery|reshape) *=' > /dev/null /proc/mdstat ; then
echo >&2 "ERROR resync or recovery is happening!"; cat /proc/mdstat ; exit 1;
fi
;;
wait )
sleep 0.1
- while grep -E '(resync|recovery|reshape|check|repair) =' > /dev/null /proc/mdstat
+ while grep -E '(resync|recovery|reshape|check|repair) *=' > /dev/null /proc/mdstat
do sleep 2;
done
;;