tests/tools/run_python_tests.sh
changeset 1820 76f5eba31afd
child 1825 bcb50e736a46
equal deleted inserted replaced
1819:27976d1606a4 1820:76f5eba31afd
       
     1 #!/bin/sh
       
     2 
       
     3 
       
     4 export DISPLAY=:42
       
     5 Xvfb $DISPLAY -screen 0 1280x1024x24 &
       
     6 sleep 1
       
     7 
       
     8 ret=0
       
     9 DELAY=400
       
    10 KILL_DELAY=$(($DELAY + 30))
       
    11 timeout -k $KILL_DELAY $DELAY pytest --timeout=10 ./tests/tools
       
    12 ret=$?
       
    13 
       
    14 pkill -9 Xvfb
       
    15 
       
    16 exit $ret