summaryrefslogtreecommitdiffstats
path: root/test/run_window_test.sh
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-01-05 18:19:35 +0100
committerDave Davenport <qball@gmpclient.org>2016-01-05 18:19:35 +0100
commit155cf351e08b88c88f6d188484e83417ca33fa2a (patch)
tree1a9e09cdf88e4a1669c54b142bd52623dc8e175b /test/run_window_test.sh
parent933eb7e490dd49c4e0031758cf14a1680aec979c (diff)
Update window test.
Diffstat (limited to 'test/run_window_test.sh')
-rwxr-xr-xtest/run_window_test.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/run_window_test.sh b/test/run_window_test.sh
index 8e10b5fe..7439a09b 100755
--- a/test/run_window_test.sh
+++ b/test/run_window_test.sh
@@ -2,20 +2,24 @@
# wait till it is up, run rofi with error message
sleep 1;
-xterm &
+xterm -T MonkeySee sh &
XPID=$!
sleep 1;
-echo -e -n "aap\nnoot\nmies" | rofi -modi window -show window > output.txt &
+xterm -T TermUnwanted sh &
+TPID=$!
+sleep 1;
+rofi -modi window -show window > output.txt &
RPID=$!
# send enter.
sleep 5;
-xdotool type 'xterm'
+xdotool type 'MonkeySee'
sleep 0.4
xdotool key Return
sleep 1;
xdotool key Ctrl+d
wait ${XPID}
+kill ${TPID}
# Get result, kill xvfb
wait ${RPID}
RETV=$?