tests: wait a bit long for reshape to complete.

As the kernel now does less locking, 'check wait' doesn't
always wait long enough.  Add some pauses.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2015-05-25 16:59:19 +10:00
parent e0cc1c8d8b
commit 20c993e2e5
2 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,8 @@ checkgeo() {
shift
sleep 0.5
check wait
for attr in level raid_disks chunk_size layout
sleep 1
for attr in level raid_disks chunk_size layout
do
if [ $# -gt 0 ] ; then
val=$1

View File

@ -26,6 +26,7 @@ checkgeo() {
shift
sleep 0.5
check wait
sleep 1
for attr in level raid_disks chunk_size layout
do
if [ $# -gt 0 ] ; then
@ -38,7 +39,7 @@ checkgeo() {
fi
done
}
bu=/tmp/md-test-backup
rm -f $bu