mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
tests/virtual-image: Use sleep multiplier when running under valgrind
This commit is contained in:
@@ -146,6 +146,9 @@ class VirtualImage(unittest.TestCase):
|
|||||||
nonlocal done
|
nonlocal done
|
||||||
done = True
|
done = True
|
||||||
|
|
||||||
|
if 'UNDER_VALGRIND' in os.environ:
|
||||||
|
timeout = timeout * 3
|
||||||
|
|
||||||
source = GLib.timeout_add(timeout, on_timeout_reached)
|
source = GLib.timeout_add(timeout, on_timeout_reached)
|
||||||
while not done:
|
while not done:
|
||||||
if self.dev.get_finger_status() & finger_status:
|
if self.dev.get_finger_status() & finger_status:
|
||||||
|
|||||||
Reference in New Issue
Block a user