Whamcloud - gitweb
b=16818
authorzhanghc <zhanghc>
Tue, 5 May 2009 13:44:40 +0000 (13:44 +0000)
committerzhanghc <zhanghc>
Tue, 5 May 2009 13:44:40 +0000 (13:44 +0000)
fix a bug in previous patch for the bug

i=nathan.rutman
i=robert.read

lustre/tests/test-framework.sh

index b76a73b..cd19db7 100644 (file)
@@ -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