diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/run_test.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/run_test.sh b/test/run_test.sh index dc1f13e1..2e276960 100755 --- a/test/run_test.sh +++ b/test/run_test.sh @@ -1,12 +1,15 @@ #!/usr/bin/env bash XPID= +FPID= function create_fake_x ( ) { export DISPLAY=":$1" echo "Starting fake X: ${DISPLAY}" Xvfb ${DISPLAY} & XPID=$! + fluxbox & + FPID=$! sleep 1 } @@ -14,7 +17,9 @@ function destroy_fake_x ( ) { if [ -n "${XPID}" ] then - echo "Stopping fake X: ${XPID}" + echo "Stopping fake X: ${XPID} - ${FPID}" + kill ${FPID} + wait ${FPID} kill ${XPID} wait ${XPID} fi |