mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-12 14:16:06 +00:00
fix(tests): fix screen recording for persistance tests on THP builds
[no changelog]
This commit is contained in:
parent
a93b01c14a
commit
5f85a2f292
@ -9,6 +9,7 @@ from _pytest.nodes import Node
|
||||
from _pytest.outcomes import Failed
|
||||
|
||||
from trezorlib.debuglink import TrezorClientDebugLink as Client
|
||||
from trezorlib.client import ProtocolVersion
|
||||
|
||||
from . import common
|
||||
from .common import SCREENS_DIR, UI_TESTS_DIR, TestCase, TestResult
|
||||
@ -61,6 +62,7 @@ def screen_recording(
|
||||
yield
|
||||
finally:
|
||||
client.ensure_open()
|
||||
if client.protocol_version == ProtocolVersion.PROTOCOL_V1:
|
||||
client.sync_responses()
|
||||
# Wait for response to Initialize, which gives the emulator time to catch up
|
||||
# and redraw the homescreen. Otherwise there's a race condition between that
|
||||
|
Loading…
Reference in New Issue
Block a user