Browse Source

tests: fix race condition in gui_memory_pinning test

Don't rely on top update timing, pause it updates for taking
screenshots.
Marek Marczykowski-Górecki 5 years ago
parent
commit
3b6703f2bd
1 changed files with 3 additions and 0 deletions
  1. 3 0
      qubes/tests/integ/vm_qrexec_gui.py

+ 3 - 0
qubes/tests/integ/vm_qrexec_gui.py

@@ -1142,6 +1142,9 @@ int main(int argc, char **argv) {
         # wait for damage notify - top updates every 3 sec by default
         yield from asyncio.sleep(6)
 
+        # stop changing the window content
+        subprocess.check_call(['xdotool', 'key', '--window', winid, 'd'])
+
         # now take screenshot of the window, from dom0 and VM
         # choose pnm format, as it doesn't have any useless metadata - easy
         # to compare