From 4d21f2912723036be581c60eac3a24f15c27e761 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Fri, 3 May 2019 19:02:05 -0400 Subject: [PATCH] ignore other devices when checking that the coldcard has started --- test/test_coldcard.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/test_coldcard.py b/test/test_coldcard.py index 792e37d..6998bc6 100755 --- a/test/test_coldcard.py +++ b/test/test_coldcard.py @@ -18,7 +18,12 @@ def coldcard_test_suite(simulator, rpc, userpass, interface): # Wait for simulator to be up while True: enum_res = process_commands(['enumerate']) - if len(enum_res) > 0 and 'error' not in enum_res[0]: + found = False + for dev in enum_res: + if dev['type'] == 'coldcard' and 'error' not in dev: + found = True + break + if found: break time.sleep(0.5) # Cleanup