Whamcloud - gitweb
b=20057 Add the timestamp back to the test headers.
authorRobert Read <rread@sun.com>
Thu, 11 Feb 2010 05:07:17 +0000 (21:07 -0800)
committerRobert Read <rread@sun.com>
Thu, 11 Feb 2010 05:07:17 +0000 (21:07 -0800)
a=manoj
i=rread
i=grev

lustre/tests/test-framework.sh

index 7c237c4..cf13aed 100644 (file)
@@ -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 ] && \