mirror of
https://github.com/lbonn/rofi
synced 2024-11-14 16:17:11 +00:00
Try to fix test on travis server.
This commit is contained in:
parent
1916b0e66e
commit
a9953f4c3b
2 changed files with 10 additions and 6 deletions
|
@ -15,4 +15,5 @@ sleep 5 && DISPLAY=:200 xdotool key Return
|
|||
wait ${RPID}
|
||||
RETV=$?
|
||||
kill ${XPID}
|
||||
sleep 1
|
||||
exit ${RETV}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue