Try to fix test on travis server.

This commit is contained in:
QC 2014-08-29 16:39:11 +02:00
parent 1916b0e66e
commit a9953f4c3b
2 changed files with 10 additions and 6 deletions

View File

@ -15,4 +15,5 @@ sleep 5 && DISPLAY=:200 xdotool key Return
wait ${RPID}
RETV=$?
kill ${XPID}
sleep 1
exit ${RETV}

View File

@ -1,25 +1,28 @@
#!/usr/bin/env bash
# Create fake X
Xvfb :200 &
Xvfb :201 &
XPID=$!
# wait till it is up, run rofi with error message
sleep 1 && ./rofi -rnow -display :200 &
sleep 1 && ./rofi -rnow -display :201 &
RPID=$!
# send enter.
sleep 5;
DISPLAY=:200 xdotool key 'shift+slash'
DISPLAY=:201 xdotool key 'shift+slash'
sleep 0.4
DISPLAY=:200 xdotool key 'shift+slash'
DISPLAY=:201 xdotool key 'shift+slash'
sleep 0.4
DISPLAY=:200 xdotool key 'shift+slash'
DISPLAY=:201 xdotool key 'shift+slash'
sleep 0.4
DISPLAY=:200 xdotool key Escape
DISPLAY=:201 xdotool key Escape
# Get result, kill xvfb
wait ${RPID}
RETV=$?
kill ${XPID}
sleep 1
exit ${RETV}