From: Robert Read Date: Thu, 11 Feb 2010 05:07:17 +0000 (-0800) Subject: b=20057 Add the timestamp back to the test headers. X-Git-Tag: 1.10.0.37~15 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6c80ca6ae2fdecc8653b8309b61d602c2746033d;p=fs%2Flustre-release.git b=20057 Add the timestamp back to the test headers. a=manoj i=rread i=grev --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 7c237c4..cf13aed 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -2610,16 +2610,16 @@ reset_fail_loc () { } run_one() { - testnum=$1 - message=$2 + local testnum=$1 + local message=$2 + local start_tm=$3 tfile=f${testnum} export tdir=d0.${TESTSUITE}/d${base} export TESTNAME=test_$testnum local SAVE_UMASK=`umask` umask 0022 - echo - log "== test $testnum: $message == `date +%H:%M:%S`" + log "== test $testnum: $message == `date +%H:%M:%S` ($start_tm)" test_${testnum} || error "test_$testnum failed with $?" cd $SAVE_PWD reset_fail_loc @@ -2639,7 +2639,8 @@ run_one_logged() { local test_log=$LOGDIR/$name rm -rf $LOGDIR/err - run_one $1 "$2" 2>&1 | tee $test_log + echo + run_one $1 "$2" $BEFORE 2>&1 | tee $test_log local RC=${PIPESTATUS[0]} [ $RC -ne 0 ] && [ ! -f $LOGDIR/err ] && \