mirror of
https://github.com/espressif/openthread.git
synced 2026-09-04 08:10:11 +00:00
[tests] explicitly enable/disable border agent in test_publish_meshcop_service (#11707)
The `test_publish_meshcop_service` is updated to explicitly disable the border agent before stopping the `otbr-service`. This makes the test more reliable by ensuring the MeshCoP service is unpublished before stopping `otbr-service`.
This commit is contained in:
@@ -1453,6 +1453,14 @@ class NodeImpl:
|
||||
self.send_command(cmd)
|
||||
return int(self._expect_command_output()[0])
|
||||
|
||||
def enable_border_agent(self):
|
||||
self.send_command('ba enable')
|
||||
self._expect_done()
|
||||
|
||||
def disable_border_agent(self):
|
||||
self.send_command('ba disable')
|
||||
self._expect_done()
|
||||
|
||||
def get_border_agent_counters(self):
|
||||
cmd = 'ba counters'
|
||||
self.send_command(cmd)
|
||||
|
||||
Reference in New Issue
Block a user