mirror of
https://github.com/espressif/openthread.git
synced 2026-07-29 15:17:47 +00:00
[tests] verify meshcop service after a factoryreset (#7592)
This commit is contained in:
@@ -2145,7 +2145,13 @@ class NodeImpl:
|
||||
return result
|
||||
|
||||
def reset(self):
|
||||
self.send_command('reset', expect_command_echo=False)
|
||||
self._reset('reset')
|
||||
|
||||
def factory_reset(self):
|
||||
self._reset('factoryreset')
|
||||
|
||||
def _reset(self, cmd):
|
||||
self.send_command(cmd, expect_command_echo=False)
|
||||
time.sleep(self.RESET_DELAY)
|
||||
# Send a "version" command and drain the CLI output after reset
|
||||
self.send_command('version', expect_command_echo=False)
|
||||
|
||||
Reference in New Issue
Block a user