X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2Frun_log;h=ec1f18018df70035c134724bba992eff6d2b1b66;hb=91a502c1e5932b97f67efbce5c5d0e843b932310;hp=0003226506cf2fb986847f2f7eaeeeb396544919;hpb=8666ae7f0291e8d115e166ef555f02abafc40fc8;p=tests.git diff --git a/system/run_log b/system/run_log index 0003226..ec1f180 100755 --- a/system/run_log +++ b/system/run_log @@ -1,6 +1,6 @@ #!/bin/bash cd $(dirname $0) -python -c "import time; print int(time.time())" > timestamp +python3 -c "import time; print(int(time.time()))" > timestamp mkdir -p logs time=$(date +%H-%M) runfile=run-${time}.txt @@ -12,7 +12,7 @@ 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 ; retcod=$? +python3 -u TestMain.py -t logs/$tracefile "$@" &> logs/$runfile ; retcod=$? cat logs/$runfile case "$retcod" in 0) touch logs/success ;;