1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-04-07 17:33:14 -04:00

test-x: Keep server and fluxbox logs out of the way

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2017-05-28 00:43:46 +02:00
parent cfede32f7c
commit 0afe4d237d
No known key found for this signature in database
GPG key ID: AC203F96E2C34BB7
2 changed files with 5 additions and 5 deletions

View file

@ -26,6 +26,7 @@ tests=(
)
cd ${MESON_BUILD_ROOT}
mkdir -p test-x-logs
rm -f core
display=200

View file

@ -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