[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.
This commit is contained in:
Albert Cheng 2006-01-10 08:17:14 -05:00
parent df8739d8c6
commit bdb6d1af4f

View File

@ -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.