git://git.onelab.eu
/
tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
turn deathvegas back off
[tests.git]
/
system
/
run_log
diff --git
a/system/run_log
b/system/run_log
index
345ac2e
..
16ed934
100755
(executable)
--- a/
system/run_log
+++ b/
system/run_log
@@
-1,14
+1,19
@@
#!/bin/bash
cd $(dirname $0)
#!/bin/bash
cd $(dirname $0)
+python -c "import time; print int(time.time())" > timestamp
mkdir -p logs
time=$(date +%H-%M)
mkdir -p logs
time=$(date +%H-%M)
-logfile=logs/runtest-${time}.log
-tracefile=logs/trace-${time}.txt
+runfile=run-${time}.txt
+runlast=run
+tracefile=trace-${time}.txt
+tracelast=trace
# figure if TestMain succeeds, as the retcod gets lost in the pipe
rm -f logs/success
# figure if TestMain succeeds, as the retcod gets lost in the pipe
rm -f logs/success
-python -u TestMain.py -t $tracefile "$@" &> $logfile && touch logs/success
-cat $logfile
+rm -f logs/$runlast; (cd logs; ln -s $runfile $runlast)
+rm -f logs/$tracelast; (cd logs; ln -s $tracefile $tracelast)
+python -u TestMain.py -t logs/$tracefile "$@" &> logs/$runfile && touch logs/success
+cat logs/$runfile
if [ -f logs/success ] ; then
exit 0
if [ -f logs/success ] ; then
exit 0