Skip to content

Commit

Permalink
tests: wait a bit for the copy operation
Browse files Browse the repository at this point in the history
Sending ctrl+shift+c only sends the copy request (XConvertSelection()
call in vmside.c), it doesn't wait for the application to respond. Give
it a moment for the copy to complete.
  • Loading branch information
marmarek committed Oct 24, 2024
1 parent a28fcb7 commit c13e135
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qubes/tests/integ/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,10 @@ async def _test_clipboard(self, test_string,
# this will be much better - at least because events will have
# correct timestamp (so gui-daemon would not drop the copy request)
subprocess.check_call(['xdotool',
'key', 'ctrl+a', 'ctrl+c', 'ctrl+shift+c',
'Escape'])
'key', 'ctrl+a', 'ctrl+c', 'ctrl+shift+c'])
# copy operation is async, wait a bit before closing the window
await asyncio.sleep(1)
subprocess.check_call(['xdotool', 'Escape'])

await self.wait_for_window_coro(window_title, show=False)

Expand Down

0 comments on commit c13e135

Please sign in to comment.