fix(tests): run test_softlock_instability on emulator only

pull/1382/head
Martin Milata 4 years ago
parent ee64b65b26
commit 8fd12f4373

@ -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))

@ -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)

Loading…
Cancel
Save