From: zhanghc Date: Tue, 5 May 2009 14:08:00 +0000 (+0000) Subject: b=16818 X-Git-Tag: GIT_EPOCH_B1_6~2^5~33 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e86b5e74848ec3c43f89416b7083ee2882528c10;p=fs%2Flustre-release.git b=16818 fix a bug in the 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 f8670ad..d51bb5a 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -817,12 +817,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" sleep $sleep WAIT=$((WAIT + sleep))