mirror of
https://github.com/espressif/openthread.git
synced 2026-08-05 10:27:49 +00:00
[thci] allow custom otbr-agent log dumping command via Param9 (#8137)
This commit allows THCI to use custom command to dump `otbr-agent` logs via `Param9`.
This commit is contained in:
@@ -636,7 +636,8 @@ class OpenThread_BR(OpenThreadTHCI, IThci):
|
||||
self.bash('truncate -s 0 /var/log/syslog')
|
||||
|
||||
def __dumpSyslog(self):
|
||||
output = self.bash_unwatched('grep "otbr-agent" /var/log/syslog')
|
||||
cmd = self.extraParams.get('cmd-dump-otbr-log', 'grep "otbr-agent" /var/log/syslog')
|
||||
output = self.bash_unwatched(cmd)
|
||||
for line in output:
|
||||
self.log('%s', line)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user