|
|
@@ -77,22 +77,26 @@ default_cli_ot_para = ocf.thread_parameter('router', '', '12', '', False)
|
|
|
@pytest.mark.flaky(reruns=1, reruns_delay=1)
|
|
|
@pytest.mark.parametrize(
|
|
|
'port, config, count, app_path, beta_target, target', [
|
|
|
- ('/dev/USB_RCP|/dev/USB_CLI|/dev/USB_BR|/dev/USB_CLI_C6', 'rcp|cli|br|cli_c6', 4,
|
|
|
+ ('/dev/USB_RCP|/dev/USB_CLI|/dev/USB_BR|/dev/USB_CLI_C6|/dev/USB_CLI_H2',
|
|
|
+ 'rcp|cli|br|cli_c6|cli_h2', 5,
|
|
|
f'{os.path.join(os.path.dirname(__file__), "ot_rcp")}'
|
|
|
f'|{os.path.join(os.path.dirname(__file__), "ot_cli")}'
|
|
|
f'|{os.path.join(os.path.dirname(__file__), "ot_br")}'
|
|
|
+ f'|{os.path.join(os.path.dirname(__file__), "ot_cli")}'
|
|
|
f'|{os.path.join(os.path.dirname(__file__), "ot_cli")}',
|
|
|
- 'esp32h2beta2|esp32h2beta2|esp32s3|esp32c6', 'esp32h4|esp32h4|esp32s3|esp32c6'),
|
|
|
+ 'esp32h2beta2|esp32h2beta2|esp32s3|esp32c6|esp32h2',
|
|
|
+ 'esp32h4|esp32h4|esp32s3|esp32c6|esp32h2'),
|
|
|
],
|
|
|
indirect=True,
|
|
|
)
|
|
|
-def test_thread_connect(dut:Tuple[IdfDut, IdfDut, IdfDut, IdfDut]) -> None:
|
|
|
+def test_thread_connect(dut:Tuple[IdfDut, IdfDut, IdfDut, IdfDut, IdfDut]) -> None:
|
|
|
br = dut[2]
|
|
|
- cli_h2 = dut[1]
|
|
|
+ cli_h4 = dut[1]
|
|
|
cli_c6 = dut[3]
|
|
|
+ cli_h2 = dut[4]
|
|
|
dut[0].serial.stop_redirect_thread()
|
|
|
- cli_list = [cli_h2, cli_c6]
|
|
|
- router_extaddr_list = ['7766554433221101', '7766554433221102']
|
|
|
+ cli_list = [cli_h4, cli_c6, cli_h2]
|
|
|
+ router_extaddr_list = ['7766554433221101', '7766554433221102', '7766554433221103']
|
|
|
|
|
|
ocf.reset_thread(br)
|
|
|
for cli in cli_list:
|