mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-30 03:18:20 +00:00
tests: remove obsoleted raspi code
This commit is contained in:
parent
d1bfc76d91
commit
df338c4399
@ -9,24 +9,15 @@ from trezorlib.transport_hid import HidTransport
|
|||||||
devices = HidTransport.enumerate()
|
devices = HidTransport.enumerate()
|
||||||
|
|
||||||
if len(devices) > 0:
|
if len(devices) > 0:
|
||||||
if devices[0][1] != None:
|
print('Using TREZOR')
|
||||||
print('Using TREZOR')
|
TRANSPORT = HidTransport
|
||||||
TRANSPORT = HidTransport
|
TRANSPORT_ARGS = (devices[0],)
|
||||||
TRANSPORT_ARGS = (devices[0],)
|
TRANSPORT_KWARGS = {'debug_link': False}
|
||||||
TRANSPORT_KWARGS = {'debug_link': False}
|
DEBUG_TRANSPORT = HidTransport
|
||||||
DEBUG_TRANSPORT = HidTransport
|
DEBUG_TRANSPORT_ARGS = (devices[0],)
|
||||||
DEBUG_TRANSPORT_ARGS = (devices[0],)
|
DEBUG_TRANSPORT_KWARGS = {'debug_link': True}
|
||||||
DEBUG_TRANSPORT_KWARGS = {'debug_link': True}
|
|
||||||
else:
|
|
||||||
print('Using Raspberry Pi')
|
|
||||||
TRANSPORT = HidTransport
|
|
||||||
TRANSPORT_ARGS = (devices[0],)
|
|
||||||
TRANSPORT_KWARGS = {'debug_link': False}
|
|
||||||
DEBUG_TRANSPORT = SocketTransportClient
|
|
||||||
DEBUG_TRANSPORT_ARGS = ('trezor.bo:2000',)
|
|
||||||
DEBUG_TRANSPORT_KWARGS = {}
|
|
||||||
else:
|
else:
|
||||||
print('Using Emulator')
|
print('Using Emulator(v1)')
|
||||||
TRANSPORT = PipeTransport
|
TRANSPORT = PipeTransport
|
||||||
TRANSPORT_ARGS = ('/tmp/pipe.trezor', False)
|
TRANSPORT_ARGS = ('/tmp/pipe.trezor', False)
|
||||||
TRANSPORT_KWARGS = {}
|
TRANSPORT_KWARGS = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user