@@ -240,8 +240,13 @@ def test_dual_host_info_to_device_cdc(board):
240
240
print (f'\r \n { l } ' , end = '' )
241
241
enum_dev_sn .append (f'{ vid_pid_sn .group (1 )} _{ vid_pid_sn .group (2 )} _{ vid_pid_sn .group (3 )} ' )
242
242
243
- assert (set (declared_devs ) == set (enum_dev_sn )), \
244
- f'Enumerated devices { enum_dev_sn } not match with declared { declared_devs } '
243
+ if set (declared_devs ) != set (enum_dev_sn ):
244
+ # for pico/pico2 make this test optional
245
+ failed_msg = f'Enumerated devices { enum_dev_sn } not match with declared { declared_devs } '
246
+ if 'raspberry_pi_pico' in board ['name' ]:
247
+ print (f'\r \n { failed_msg } ' , end = '' )
248
+ else :
249
+ assert False , failed_msg
245
250
return 0
246
251
247
252
@@ -405,15 +410,15 @@ def test_board(board):
405
410
406
411
if 'tests' in board :
407
412
board_tests = board ['tests' ]
413
+ if 'dual_attached' in board_tests :
414
+ test_list += dual_tests
408
415
if 'only' in board_tests :
409
416
test_list = board_tests ['only' ]
410
417
if 'skip' in board_tests :
411
418
for skip in board_tests ['skip' ]:
412
419
if skip in test_list :
413
420
test_list .remove (skip )
414
421
print (f'{ name :25} { skip :30} ... Skip' )
415
- if 'dual_attached' in board_tests :
416
- test_list += dual_tests
417
422
418
423
# board_test is added last to disable board's usb
419
424
test_list .append ('device/board_test' )
0 commit comments