From aa310303ea0a949bcf244bb468b741c8c4b16e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 7 Oct 2024 17:08:59 +0200 Subject: [PATCH] tests: fix Whonix notifications interfering with test_300_bug_1028_gui_memory_pinning Whonix Gateway shows some notifications / windows on startup (Tor connection progress info, updates notification, news etc). When it happens at the wrong time, it will switch focus between two screenshots, affecting cursor image and thus causing the test to fail. Avoid this by disabling starting Tor for this test. (cherry picked from commit 506cd2a6db167646b92cb9977a4f0c4626677bc6) --- qubes/tests/integ/vm_qrexec_gui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubes/tests/integ/vm_qrexec_gui.py b/qubes/tests/integ/vm_qrexec_gui.py index a3ebe4a90..594f56ca4 100644 --- a/qubes/tests/integ/vm_qrexec_gui.py +++ b/qubes/tests/integ/vm_qrexec_gui.py @@ -968,6 +968,8 @@ async def _test_300_bug_1028_gui_memory_pinning(self): # exclude from memory balancing self.testvm1.features['service.meminfo-writer'] = False + # prevent Whonix startup notifications from interfering + self.testvm1.features['service.whonix-tor-disable'] = True await self.testvm1.start() await self.wait_for_session(self.testvm1)