git://git.onelab.eu
/
tests.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
check sfa slice right away with plcapi
[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