From 1e8161af387cf2e5cb5d97f8dfe32ba15d1c8410 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 28 Feb 2002 10:10:30 -0500 Subject: [svn-r5024] Purpose: Feature Description: The output of multiple tests of one host used to all go to the same logfile. It is harder to find the beginning of each test. Solution: Added hour and minute (HHMM) into the logfile name. Different tests should go to different files now. If a second test starts within a minute of the previous test, their output will be all in the same file. In the case, there are probably not that much output to worry. Platforms tested: eirene --- bin/runtest | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/runtest b/bin/runtest index 3728c15..01d5113 100755 --- a/bin/runtest +++ b/bin/runtest @@ -312,7 +312,8 @@ RUNSNAPTEST() fi # Setup log file name to save test output - LOGFILE=${LOGBASENAME}${SRCDIRNAME}_${TODAY} + THIS_MINUTE=`date +%H%M` + LOGFILE=${LOGBASENAME}${SRCDIRNAME}_${TODAY}_${THIS_MINUTE} PRINT "Running snapshot with output saved in" PRINT " $LOGFILE" (date; PRINT Hostname=$HOSTNAME) >> $LOGFILE -- cgit v0.12