tests/window: Add some logging

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2017-07-27 18:08:23 +02:00
parent e854260ef8
commit e570fd76c3
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
1 changed files with 11 additions and 1 deletions

View File

@ -4,12 +4,15 @@
sleep 1;
xterm -T MonkeySee sh &
XPID=$!
echo "Started MonkeySee xterm: pid ${XPID}"
sleep 1;
xterm -T TermUnwanted sh &
TPID=$!
echo "Started TermUnwanted xterm: pid ${TPID}"
sleep 1;
rofi -modi window -show window > output.txt &
RPID=$!
echo "Started rofi: pid ${RPID}"
# send enter.
sleep 5;
@ -19,9 +22,16 @@ xdotool key Return
sleep 1;
xdotool key Ctrl+d
sleep 1;
kill ${TPID}
echo -n "Killing TermUnwanted: "
if kill ${TPID}; then
echo "done"
# wait ${TPID}
fi
if pgrep -u $USER xterm
then
echo "Found remaining xterms: $(pgrep -u $USER xterm)"
kill ${XPID}
kill ${RPID}
exit 1