From 3b6703f2bd6c449a9f1ebce3e7a39508e4bf963b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 14 Oct 2018 05:48:25 +0200 Subject: [PATCH] tests: fix race condition in gui_memory_pinning test Don't rely on top update timing, pause it updates for taking screenshots. --- qubes/tests/integ/vm_qrexec_gui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qubes/tests/integ/vm_qrexec_gui.py b/qubes/tests/integ/vm_qrexec_gui.py index c93dd49a..a847a71d 100644 --- a/qubes/tests/integ/vm_qrexec_gui.py +++ b/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