1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00
rofi/test/run_errormsg_test.sh

20 lines
318 B
Bash
Raw Normal View History

2014-08-29 09:21:10 -04:00
#!/usr/bin/env bash
# Create fake X
Xvfb :200 &
XPID=$!
# wait till it is up, run rofi with error message
sleep 1 && ./rofi -e "Printing error message" -display :200 &
RPID=$!
# send enter.
sleep 5 && DISPLAY=:200 xdotool key Return
# Get result, kill xvfb
wait ${RPID}
RETV=$?
kill ${XPID}
2014-08-29 10:39:11 -04:00
sleep 1
2014-08-29 09:21:10 -04:00
exit ${RETV}