[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:
Abtin Keshavarzian
2025-07-10 22:16:18 -07:00
committed by GitHub
parent 406b1dee6e
commit 23127fda98
2 changed files with 12 additions and 0 deletions
+8
View File
@@ -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)