Refine some tests.

Signed-off-by: Neil Brown <neilb@suse.de>
This commit is contained in:
Neil Brown 2005-09-12 06:47:33 +00:00
parent 6d3d580468
commit 0ba1565f10
2 changed files with 3 additions and 2 deletions

2
test
View File

@ -78,7 +78,7 @@ check() {
echo >&2 "ERROR active $1 not found" ; cat /proc/mdstat ; exit 1;}
;;
resync | recovery )
sleep 0.1
sleep 0.5
grep -s $1 /proc/mdstat > /dev/null || {
echo >&2 ERROR no $1 happening; cat /proc/mdstat; exit 1; }
;;

View File

@ -6,7 +6,8 @@
mdadm -CR $md0 -l5 -n4 $dev0 $dev1 $dev2 $dev3
check recovery
mdadm $md0 --fail $dev3
mdadm $md0 --fail $dev3
sleep 1
check nosync
check state UUU_