[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:
kangping
2021-01-15 13:08:51 +08:00
committed by GitHub
parent a8e5d11e23
commit 4d50cbadbc
+1 -1
View File
@@ -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('> '):