From bdb6d1af4f07e69faa9f04290cdf428907c5a4cf Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Tue, 10 Jan 2006 08:17:14 -0500 Subject: [svn-r11877] Purpose: Bug fix. Description: Fixed a typo and also moved initialization of n_xxxx variables to the common declaration place. Platforms tested: Tested in v1.6 branch already. --- bin/runtest | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/runtest b/bin/runtest index e3b3f71..af6434d 100755 --- a/bin/runtest +++ b/bin/runtest @@ -44,6 +44,10 @@ TODAY=`date +%y%m%d` WEEKDAY=`date +%a` H5VER= # default to current CVS version H5VERSION= # default to current CVS version +n_test=0 # Number of tests ran +n_pass=0 # Number of tests passed +n_fail=0 # Number of tests failed +n_skip=0 # Number of tests skipped # Default to do checkout (only once) and test, no release. # Will run test only if there is significant differences from previous version. @@ -146,7 +150,7 @@ PRINT_TRAILER() { PRINT "*** finished tests in $HOSTNAME ***" date; TotalEndTime=`SecOfDay` - PRINT "${HOSTNAME}: Ran $n_test($n_pass/$n_fail/$n_fail) $runtest_type, Grand total test time = " \ + PRINT "${HOSTNAME}: Ran $n_test($n_pass/$n_fail/$n_skip) $runtest_type, Grand total test time = " \ "`ElapsedTime $TotalStartTime $TotalEndTime`" | tee -a $TIMELOG PRINT_BLANK } @@ -838,10 +842,6 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then ($SNAPYARD/current/bin/timekeeper $timelimit > $TIMEKEEPERLOG 2>&1 &) PRINT " Fork off timekeeper $timelimit" fi - n_test=0 - n_pass=0 - n_fail=0 - n_skip=0 runtest_type="hosts" for h in $TESTHOST; do # Must do CONFIGNAME before $h got changed by the second cut. -- cgit v0.12