feat(openthread): add test support for esp_netif glue disabled scenario

Signed-off-by: Zhibin (Ryan) Wen <wenzhibin@espressif.com>
This commit is contained in:
Zhibin (Ryan) Wen
2026-04-22 19:36:26 +08:00
parent bf10089b8e
commit a49bbb0fa4
6 changed files with 77 additions and 4 deletions
+4 -3
View File
@@ -189,7 +189,7 @@ def getDataset(dut: IdfDut) -> str:
def init_thread(dut: IdfDut) -> None:
dut.expect('OpenThread attached to netif', timeout=10)
dut.expect('OpenThread enter mainloop', timeout=10)
wait(dut, 3)
reset_thread(dut)
@@ -202,7 +202,7 @@ def stop_thread(dut: IdfDut) -> None:
def reset_thread(dut: IdfDut) -> None:
execute_command(dut, 'factoryreset')
dut.expect('OpenThread attached to netif', timeout=20)
dut.expect('OpenThread enter mainloop', timeout=20)
wait(dut, 3)
clean_buffer(dut)
@@ -464,7 +464,8 @@ def check_ipmaddr(dut: IdfDut) -> bool:
def thread_is_joined_group(dut: IdfDut) -> bool:
command = 'mcast join ' + thread_ipv6_group
should_use_mcast = dut.app.sdkconfig.get('OPENTHREAD_PLATFORM_NETIF') is True
command = ('mcast join ' if should_use_mcast else 'ipmaddr add ') + thread_ipv6_group
execute_command(dut, command)
dut.expect('Done', timeout=5)
order = 0