From e7a10c6b631ac347789111f7528ea6acf388dab2 Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Wed, 1 Dec 2010 20:25:24 +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 7aac7d6..87ad114 100644 --- a/lustre/tests/recovery-mds-scale.sh +++ b/lustre/tests/recovery-mds-scale.sh @@ -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 diff --git a/lustre/tests/recovery-random-scale.sh b/lustre/tests/recovery-random-scale.sh index 8982594..3c424dc 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