From: zhanghc Date: Tue, 5 May 2009 13:44:40 +0000 (+0000) Subject: b=16818 X-Git-Tag: v1_8_0_110~51 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=dd4c21ee170dc91225ffc3f9df64133e49dd84a1;p=fs%2Flustre-release.git b=16818 fix a bug in previous patch for the bug i=nathan.rutman i=robert.read --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index b76a73b..cd19db7 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -838,12 +838,13 @@ wait_update () { local RESULT local WAIT=0 local sleep=5 - while [ $WAIT -lt $MAX ]; do + while [ true ]; do RESULT=$(do_node $node "$TEST") if [ "$RESULT" == "$FINAL" ]; then echo "Updated after $WAIT sec: wanted '$FINAL' got '$RESULT'" return 0 fi + [ $WAIT -ge $MAX ] && break echo "Waiting $((MAX - WAIT)) secs for update" WAIT=$((WAIT + sleep)) sleep $sleep