Whamcloud - gitweb
b=24228 fix test duration check to be more accurate
authorelena.gryaznova@oracle.com <elena.gryaznova@oracle.com>
Fri, 26 Nov 2010 22:31:09 +0000 (01:31 +0300)
committerVitaly Fertman <vitaly.fertman@oracle.com>
Fri, 26 Nov 2010 23:00:05 +0000 (02:00 +0300)
i=vitaly

lustre/tests/recovery-mds-scale.sh
lustre/tests/recovery-random-scale.sh

index 298debd..97a1431 100644 (file)
@@ -275,7 +275,7 @@ Try to increase SERVER_FAILOVER_PERIOD (current is $SERVER_FAILOVER_PERIOD), bug
 
     log "$SERVERFACET has failed over ${!var} times, and counting..."
 
 
     log "$SERVERFACET has failed over ${!var} times, and counting..."
 
-    if [ $((ELAPSED + sleep)) -gt $DURATION ]; then
+    if [ $((ELAPSED + sleep)) -ge $DURATION ]; then
          break
     fi
 
          break
     fi
 
index 3a96de9..7cf84b5 100644 (file)
@@ -306,7 +306,7 @@ Try to increase SERVER_FAILOVER_PERIOD (current is $SERVER_FAILOVER_PERIOD), bug
     log " Number of failovers:
 $(numfailovers)                and counting..."
 
     log " Number of failovers:
 $(numfailovers)                and counting..."
 
-    if [ $((ELAPSED + sleep)) -gt $DURATION ]; then
+    if [ $((ELAPSED + sleep)) -ge $DURATION ]; then
          break
     fi
 
          break
     fi