[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:
Simon Lin
2022-09-14 23:03:34 -07:00
committed by GitHub
parent bf2e1c39bc
commit a7e0516fb2
+2 -1
View File
@@ -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)