From 9d241be57f05f133edf360a87a83405edd160545 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 23 Dec 2004 18:42:57 -0500 Subject: [svn-r9714] Purpose: bug fix Description: Setup the time limit with the wrong unit concept. 300 is only 300 seconds, not 300 minutes. Set them to the correct values. --- bin/runtest | 6 +++--- bin/timekeeper | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/runtest b/bin/runtest index bb7ae64..75e78dc 100755 --- a/bin/runtest +++ b/bin/runtest @@ -528,7 +528,7 @@ errcode=0 # error code of the whole test skiptest=no # if test is skipped CC_SAVED="$CC" # CC & PATH maybe changed within a test. PATH_SAVED=$PATH # These save the original values. - +timelimit=`expr 3600 \* 5` # time limit for the timekeeper ################################# # Parse options @@ -747,8 +747,8 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then cd ${SNAPYARD}/log # Fork off timekeeper if concurrent tests will be used. if [ -n "$SRCDIR" ]; then - ($SNAPYARD/current/bin/timekeeper 300 &) - PRINT " Fork off timekeeper 300" + ($SNAPYARD/current/bin/timekeeper $timelimit &) + PRINT " Fork off timekeeper $timelimit" fi n_test=0 runtest_type="hosts" diff --git a/bin/timekeeper b/bin/timekeeper index f94f746..34d1a49 100755 --- a/bin/timekeeper +++ b/bin/timekeeper @@ -20,7 +20,7 @@ # Created Date: 2004/12/23 # variable initialization -waitperiod=300 # default to 5 hours +waitperiod=`expr 3600 \* 5` # default to 5 hours debugtimelimit= debugflag= # no debug -- cgit v0.12