diff options
author | QC <qball@gmpclient.org> | 2014-08-29 16:39:11 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2014-08-29 16:39:11 +0200 |
commit | a9953f4c3b9fac9ec7fe76157773685f63c1f789 (patch) | |
tree | 8f117ca60c5124122a751072b56996d464a67476 /test/run_switchdialog_test.sh | |
parent | 1916b0e66e7507c118d41ca947b422c7d65ee24e (diff) |
Try to fix test on travis server.
Diffstat (limited to 'test/run_switchdialog_test.sh')
-rwxr-xr-x | test/run_switchdialog_test.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/test/run_switchdialog_test.sh b/test/run_switchdialog_test.sh index fc4f5f54..820937e0 100755 --- a/test/run_switchdialog_test.sh +++ b/test/run_switchdialog_test.sh @@ -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} |