summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-05-15 01:40:33 +0200
committerNeilBrown <neilb@suse.de>2015-05-15 03:07:27 +0200
commite2a8e9dcf67a28bc722fa5ab2c49b0bc452d4d74 (patch)
tree73b635234a7bf65b77f18b4745ff8fe73414b8d9 /tests
parentGrow: retry when writing 'reshape' to 'sync_action' is EBUSY. (diff)
downloadmdadm-e2a8e9dcf67a28bc722fa5ab2c49b0bc452d4d74.tar.xz
mdadm-e2a8e9dcf67a28bc722fa5ab2c49b0bc452d4d74.zip
tests: wait for complete rebuild in integrity checks
'check wait' seems a bit racy now. Wait for the array to be fully optimal before proceeding. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/01r5integ2
-rw-r--r--tests/01raid6integ4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/01r5integ b/tests/01r5integ
index ffb30ce9..48676a22 100644
--- a/tests/01r5integ
+++ b/tests/01r5integ
@@ -27,7 +27,7 @@ do
exit 1
fi
mdadm $md0 -a $i
- check wait
+ while ! (check state 'U*'); do check wait; sleep 0.2; done
done
mdadm -S $md0
done
diff --git a/tests/01raid6integ b/tests/01raid6integ
index c6fcdae6..12f4d81b 100644
--- a/tests/01raid6integ
+++ b/tests/01raid6integ
@@ -47,10 +47,10 @@ 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