1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-11 16:00:57 +00:00

fix(tests): run test_softlock_instability on emulator only

This commit is contained in:
Martin Milata 2020-11-25 15:01:57 +01:00
parent ee64b65b26
commit 8fd12f4373
2 changed files with 7 additions and 2 deletions

View File

@ -163,7 +163,7 @@ class DebugLink:
self._call(messages.DebugLinkStop(), nowait=True)
def reseed(self, value):
self._call(messages.DebugLinkReseedRandom(value=value))
return self._call(messages.DebugLinkReseedRandom(value=value))
def start_recording(self, directory):
self._call(messages.DebugLinkRecordScreen(target_directory=directory))

View File

@ -17,6 +17,7 @@
import pytest
from trezorlib import debuglink, device, messages, misc
from trezorlib.transport import udp
from ..common import MNEMONIC12
@ -63,7 +64,11 @@ def test_softlock_instability(client):
)
# start from a clean slate:
client.debug.reseed(0)
resp = client.debug.reseed(0)
if isinstance(resp, messages.Failure) and not isinstance(
client.transport, udp.UdpTransport
):
pytest.xfail("reseed only supported on emulator")
device.wipe(client)
entropy_after_wipe = misc.get_entropy(client, 16)