From fb4028236eba15ea0556ccc23c4fb52cb0f1e30c Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Tue, 7 Apr 2015 12:36:16 +0000 Subject: [PATCH] Task #5714: Put timestamp in log filename to create a history --- SubSystems/Online_Cobalt/validation/validate | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SubSystems/Online_Cobalt/validation/validate b/SubSystems/Online_Cobalt/validation/validate index fb7ac0e2002..98a2ced25ee 100755 --- a/SubSystems/Online_Cobalt/validation/validate +++ b/SubSystems/Online_Cobalt/validation/validate @@ -52,10 +52,12 @@ cd `dirname $0` echo "Running on `hostname`:`pwd`" echo "" +LOGSUFFIX="`hostname`.log.`date +%FT%T`" + # Run all tests for TEST in `find $TESTSETS -name '*.test' -type f -a -executable` do - LOGFILE="$TEST.`hostname`.log" + LOGFILE="$TEST.$LOGSUFFIX" printf "%40s: " "$TEST" (cd `dirname $TEST` && runTest ./`basename $TEST`) > $LOGFILE 2>&1 -- GitLab