author | Andrey Skvortsov <andrej.skvortzov@gmail.com> |
Fri, 05 Oct 2018 13:11:28 +0300 | |
changeset 2435 | 925adaa2cd5c |
parent 2434 | 07f48018b6f5 |
child 2436 | 82bfc75bcd9d |
--- a/tests/tools/run_python_tests.sh Thu Oct 04 17:24:40 2018 +0300 +++ b/tests/tools/run_python_tests.sh Fri Oct 05 13:11:28 2018 +0300 @@ -1,17 +1,28 @@ #!/bin/sh +cleanup() +{ + find ./tests/tools -name '*.pyc' -delete +} + LC_ALL=ru_RU.utf-8 export DISPLAY=:42 Xvfb $DISPLAY -screen 0 1280x1024x24 & sleep 1 + +cleanup + ret=0 DELAY=400 KILL_DELAY=$(($DELAY + 30)) timeout -k $KILL_DELAY $DELAY pytest --timeout=10 ./tests/tools ret=$? +cleanup + + pkill -9 Xvfb exit $ret