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
1 changed files with 1 additions and 2 deletions

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)