X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2Frun_log;h=0003226506cf2fb986847f2f7eaeeeb396544919;hb=6538ab6e1bc3d71412f4caf567cd18a11e1267c2;hp=16ed9346aa9374ae26a80826d5ffecb5ddf02801;hpb=33e56a09ec63d83436f549ffb5a73959ac99b4ee;p=tests.git diff --git a/system/run_log b/system/run_log index 16ed934..0003226 100755 --- a/system/run_log +++ b/system/run_log @@ -12,11 +12,12 @@ tracelast=trace rm -f logs/success 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 +python -u TestMain.py -t logs/$tracefile "$@" &> logs/$runfile ; retcod=$? cat logs/$runfile +case "$retcod" in + 0) touch logs/success ;; + 2) touch logs/warning ;; +esac -if [ -f logs/success ] ; then - exit 0 -else - exit 1 -fi +echo run_log exit_code $retcod +exit $retcod