From a70d01815dabfc8e3453bd9f11562bbe0cb0c1d7 Mon Sep 17 00:00:00 2001 From: "elena.gryaznova@oracle.com" Date: Sat, 27 Nov 2010 01:31:09 +0300 Subject: [PATCH] b=24228 fix test duration check to be more accurate i=vitaly --- lustre/tests/recovery-mds-scale.sh | 2 +- lustre/tests/recovery-random-scale.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/tests/recovery-mds-scale.sh b/lustre/tests/recovery-mds-scale.sh index 298debd..97a1431 100644 --- a/lustre/tests/recovery-mds-scale.sh +++ b/lustre/tests/recovery-mds-scale.sh @@ -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..." - if [ $((ELAPSED + sleep)) -gt $DURATION ]; then + if [ $((ELAPSED + sleep)) -ge $DURATION ]; then break fi diff --git a/lustre/tests/recovery-random-scale.sh b/lustre/tests/recovery-random-scale.sh index 3a96de9..7cf84b5 100644 --- a/lustre/tests/recovery-random-scale.sh +++ b/lustre/tests/recovery-random-scale.sh @@ -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 -- 1.8.3.1