mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
tests/window: Add some logging
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
parent
e854260ef8
commit
e570fd76c3
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue