From b8ed4b5d63941d6139f1419ba3a48123a7625cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 13 Feb 2025 18:41:04 +0100 Subject: [PATCH] tests/virtual-image: Use sleep multiplier when running under valgrind --- tests/virtual-image.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/virtual-image.py b/tests/virtual-image.py index d0437845..b30d5191 100755 --- a/tests/virtual-image.py +++ b/tests/virtual-image.py @@ -146,6 +146,9 @@ class VirtualImage(unittest.TestCase): nonlocal done done = True + if 'UNDER_VALGRIND' in os.environ: + timeout = timeout * 3 + source = GLib.timeout_add(timeout, on_timeout_reached) while not done: if self.dev.get_finger_status() & finger_status: