X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2Fruntest;h=345ac2e347c57b304972dc834f69525371232c2d;hb=b9d91cf02d38ebf49a9a1bdb0f603b865691df32;hp=2923c61f8f36f4047ec2fd1eb8cccebcf378509e;hpb=08fd57fadcdcd1943618e3f215517914b7ca0eba;p=tests.git diff --git a/system/runtest b/system/runtest index 2923c61..345ac2e 100755 --- a/system/runtest +++ b/system/runtest @@ -1,5 +1,17 @@ #!/bin/bash cd $(dirname $0) mkdir -p logs -logfile=logs/runtest-$(date +%H-%M).log -exec python -u TestMain.py "$@" | tee logfile +time=$(date +%H-%M) +logfile=logs/runtest-${time}.log +tracefile=logs/trace-${time}.txt + +# 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 + +if [ -f logs/success ] ; then + exit 0 +else + exit 1 +fi