Skip to content
Snippets Groups Projects
Commit fb402823 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #5714: Put timestamp in log filename to create a history

parent 23f448e0
Branches
Tags
No related merge requests found
...@@ -52,10 +52,12 @@ cd `dirname $0` ...@@ -52,10 +52,12 @@ cd `dirname $0`
echo "Running on `hostname`:`pwd`" echo "Running on `hostname`:`pwd`"
echo "" echo ""
LOGSUFFIX="`hostname`.log.`date +%FT%T`"
# Run all tests # Run all tests
for TEST in `find $TESTSETS -name '*.test' -type f -a -executable` for TEST in `find $TESTSETS -name '*.test' -type f -a -executable`
do do
LOGFILE="$TEST.`hostname`.log" LOGFILE="$TEST.$LOGSUFFIX"
printf "%40s: " "$TEST" printf "%40s: " "$TEST"
(cd `dirname $TEST` && runTest ./`basename $TEST`) > $LOGFILE 2>&1 (cd `dirname $TEST` && runTest ./`basename $TEST`) > $LOGFILE 2>&1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment