mirror of
https://github.com/espressif/openthread.git
synced 2026-10-08 08:47:38 +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
|
cmd_output_started = False
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
self._expect(r"[^\n]+")
|
self._expect(r"[^\n]+\n")
|
||||||
line = self.pexpect.match.group(0).decode('utf8').strip()
|
line = self.pexpect.match.group(0).decode('utf8').strip()
|
||||||
|
|
||||||
if line.startswith('> '):
|
if line.startswith('> '):
|
||||||
|
|||||||
Reference in New Issue
Block a user