Skip to content

Commit 00e3cf4

Browse files
fix _check_prompt with interjected logs
Signed-off-by: Lukas Lendvorsky <[email protected]>
1 parent bf38749 commit 00e3cf4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

labgrid/driver/shelldriver.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,13 @@ def _check_prompt(self):
197197
self.console.sendline(f"echo '{marker[:4]}''{marker[4:]}'")
198198
try:
199199
self.console.expect(
200-
rf"{marker}\s+{self.prompt}",
200+
rf"{marker}\s+",
201201
timeout=30
202202
)
203+
self.console.expect(
204+
rf"{self.prompt}",
205+
timeout=1
206+
)
203207
self._status = 1
204208
except TIMEOUT:
205209
self._status = 0

0 commit comments

Comments
 (0)