Whamcloud - gitweb
b=24228 fix test duration check to be more accurate
authorElena Gryaznova <elena.gryaznova@oracle.com>
Wed, 1 Dec 2010 17:25:24 +0000 (20:25 +0300)
committerAndrew Perepechko <andrew.perepechko@oracle.com>
Wed, 1 Dec 2010 20:37:17 +0000 (23:37 +0300)
i=vitaly

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

index 7aac7d6..87ad114 100644 (file)
@@ -274,7 +274,7 @@ Try to increase SERVER_FAILOVER_PERIOD (current is $SERVER_FAILOVER_PERIOD), bug
 
     log "$SERVERFACET has failed over ${!var} times, and counting..."
 
-    if [ $((ELAPSED + sleep)) -gt $DURATION ]; then
+    if [ $((ELAPSED + sleep)) -ge $DURATION ]; then
          break
     fi
 
index 8982594..3c424dc 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..."
 
-    if [ $((ELAPSED + sleep)) -gt $DURATION ]; then
+    if [ $((ELAPSED + sleep)) -ge $DURATION ]; then
          break
     fi