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 _pytest.outcomes import Failed
|
||||||
|
|
||||||
from trezorlib.debuglink import TrezorClientDebugLink as Client
|
from trezorlib.debuglink import TrezorClientDebugLink as Client
|
||||||
|
from trezorlib.client import ProtocolVersion
|
||||||
|
|
||||||
from . import common
|
from . import common
|
||||||
from .common import SCREENS_DIR, UI_TESTS_DIR, TestCase, TestResult
|
from .common import SCREENS_DIR, UI_TESTS_DIR, TestCase, TestResult
|
||||||
@ -61,7 +62,8 @@ def screen_recording(
|
|||||||
yield
|
yield
|
||||||
finally:
|
finally:
|
||||||
client.ensure_open()
|
client.ensure_open()
|
||||||
client.sync_responses()
|
if client.protocol_version == ProtocolVersion.PROTOCOL_V1:
|
||||||
|
client.sync_responses()
|
||||||
# Wait for response to Initialize, which gives the emulator time to catch up
|
# 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
|
# and redraw the homescreen. Otherwise there's a race condition between that
|
||||||
# and stopping recording.
|
# and stopping recording.
|
||||||
|
Loading…
Reference in New Issue
Block a user