1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 21:38:26 +00:00

fix logic in device tests config

This commit is contained in:
Pavol Rusnak 2017-04-25 17:04:59 +02:00
parent 58faa02263
commit 4cba191997
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -64,9 +64,8 @@ if HID_ENABLED:
DEBUG_TRANSPORT_ARGS = (devices[0],)
DEBUG_TRANSPORT_KWARGS = {'debug_link': True}
elif PIPE_ENABLED:
elif PIPE_ENABLED and pipe_exists('/tmp/pipe.trezor.to'):
if pipe_exists('/tmp/pipe.trezor.to'):
print('Using Emulator (v1=pipe)')
TRANSPORT = PipeTransport
TRANSPORT_ARGS = ('/tmp/pipe.trezor', False)