git://git.onelab.eu
/
tests.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
0c6a88c94c862c6eae4b98221ac8c0f943d15760
[tests.git]
/
system
/
run_log
1
#!/bin/bash
2
cd $(dirname $0)
3
mkdir -p logs
4
time=$(date +%H-%M)
5
logfile=logs/run-${time}.log
6
tracefile=logs/trace-${time}.txt
7
8
# figure if TestMain succeeds, as the retcod gets lost in the pipe
9
rm -f logs/success
10
python -u TestMain.py -t $tracefile "$@" &> $logfile && touch logs/success
11
cat $logfile
12
13
if [ -f logs/success ] ; then
14
exit 0
15
else
16
exit 1
17
fi