mirror of
https://github.com/espressif/openthread.git
synced 2026-07-07 21:00:20 +00:00
9bd35de29a
Increase wait delay after starting the OTBR service in the test_publish_meshcop_service.py script. Starting otbr-agent requires the node to re-attach to the simulated Thread network and transition to the leader role. In virtualized CI environments, this role transition can take up to 14.5 seconds. Using a hardcoded 10-second delay results in a race condition where the service is published very late, causing the subsequent browse query to miss the service and fail with AssertionError. Substituting the delay with BORDER_ROUTER_STARTUP_DELAY (20s) ensures the node has sufficient time to attach, become leader, start the border agent, and fully register the mDNS service before browsing.
OpenThread Certification Tests
Inspector
Inspect nodes status by the following modification:
- Insert the inspector to where you want to inspect.
import debug
debug.Inspector(self).inspect()
- Run the test and it will stop at the line above and prompt
#.
./script/test clean build cert tests/scripts/thread-cert/Cert_5_1_01_RouterAttach.py
- Inspect
#
# 1
> state
leader
> exit
# 2
> panid
face
> exit
# exit
CLI reference
# mode
This is selection mode. You may select the node to inspect here.
list- list available nodes.exit- end inspecting, continue running test case.- <number> - select the node with id <number>. This will result in entering
>mode.
> mode
This is node mode. You may run OpenThread CLI here.
exit- go back to#mode.