From 0afe4d237dd5ca92d08211fbf78975910cedbf0a Mon Sep 17 00:00:00 2001 From: Quentin Glidic Date: Sun, 28 May 2017 00:43:46 +0200 Subject: test-x: Keep server and fluxbox logs out of the way Signed-off-by: Quentin Glidic --- test/run_all_tests.sh | 1 + test/run_test.sh | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/run_all_tests.sh b/test/run_all_tests.sh index 6625c6da..6b039c65 100755 --- a/test/run_all_tests.sh +++ b/test/run_all_tests.sh @@ -26,6 +26,7 @@ tests=( ) cd ${MESON_BUILD_ROOT} +mkdir -p test-x-logs rm -f core display=200 diff --git a/test/run_test.sh b/test/run_test.sh index ecee0ed0..a41de6a8 100755 --- a/test/run_test.sh +++ b/test/run_test.sh @@ -6,10 +6,10 @@ function create_fake_x ( ) { export DISPLAY=":$1" echo "Starting fake X: ${DISPLAY}" - Xvfb +extension XINERAMA +xinerama -screen 0 1280x1024x24 -screen 1 800x600x24 ${DISPLAY} & + Xvfb +extension XINERAMA +xinerama -screen 0 1280x1024x24 -screen 1 800x600x24 ${DISPLAY} &>test-x-logs/xserver-:$1.log & XPID=$! sleep 1; - timeout -k 30s 30s fluxbox & + timeout -k 30s 30s fluxbox &>test-x-logs/fluxbox-:$1.log & FPID=$! sleep 1 } @@ -28,14 +28,13 @@ function destroy_fake_x ( ) fi } -if [ -n "$3" ] +if [ -n "$3" ] then export PATH=$3:$PATH fi create_fake_x "$1" -echo "$DISPLAY" -$2 $4 +"$2" "$4" RES=$? destroy_fake_x -- cgit v1.2.3