3 python -c "import time; print int(time.time())" > timestamp
6 runfile=run-${time}.txt
8 tracefile=trace-${time}.txt
11 # figure if TestMain succeeds, as the retcod gets lost in the pipe
13 rm -f logs/$runlast; (cd logs; ln -s $runfile $runlast)
14 rm -f logs/$tracelast; (cd logs; ln -s $tracefile $tracelast)
15 python -u TestMain.py -t logs/$tracefile "$@" &> logs/$runfile ; retcod=$?
18 0) touch logs/success ;;
19 2) touch logs/warning ;;
22 echo run_log exit_code $retcod