mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 22:00:19 +00:00
[tests] fix expecting command output (#6072)
The _expect_command_output(self, ...) doesn't match exactly one line, it may return a line in several splits. This commit fixes this issue.
This commit is contained in:
@@ -499,7 +499,7 @@ class NodeImpl:
|
||||
cmd_output_started = False
|
||||
|
||||
while True:
|
||||
self._expect(r"[^\n]+")
|
||||
self._expect(r"[^\n]+\n")
|
||||
line = self.pexpect.match.group(0).decode('utf8').strip()
|
||||
|
||||
if line.startswith('> '):
|
||||
|
||||
Reference in New Issue
Block a user