From df338c439939e5f9165d01e6b8e46fe6fbb75ec5 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 11 Nov 2016 18:42:02 +0100 Subject: [PATCH] tests: remove obsoleted raspi code --- tests/config.py | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/tests/config.py b/tests/config.py index 35df62f969..a5c3661c8f 100644 --- a/tests/config.py +++ b/tests/config.py @@ -9,24 +9,15 @@ from trezorlib.transport_hid import HidTransport devices = HidTransport.enumerate() if len(devices) > 0: - if devices[0][1] != None: - print('Using TREZOR') - TRANSPORT = HidTransport - TRANSPORT_ARGS = (devices[0],) - TRANSPORT_KWARGS = {'debug_link': False} - DEBUG_TRANSPORT = HidTransport - DEBUG_TRANSPORT_ARGS = (devices[0],) - 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 = {} + print('Using TREZOR') + TRANSPORT = HidTransport + TRANSPORT_ARGS = (devices[0],) + TRANSPORT_KWARGS = {'debug_link': False} + DEBUG_TRANSPORT = HidTransport + DEBUG_TRANSPORT_ARGS = (devices[0],) + DEBUG_TRANSPORT_KWARGS = {'debug_link': True} else: - print('Using Emulator') + print('Using Emulator(v1)') TRANSPORT = PipeTransport TRANSPORT_ARGS = ('/tmp/pipe.trezor', False) TRANSPORT_KWARGS = {}