We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf38749 commit 516880aCopy full SHA for 516880a
labgrid/driver/shelldriver.py
@@ -197,9 +197,13 @@ def _check_prompt(self):
197
self.console.sendline(f"echo '{marker[:4]}''{marker[4:]}'")
198
try:
199
self.console.expect(
200
- rf"{marker}\s+{self.prompt}",
+ rf"{marker}\s",
201
timeout=30
202
)
203
+ self.console.expect(
204
+ rf"{self.prompt}",
205
+ timeout=1
206
+ )
207
self._status = 1
208
except TIMEOUT:
209
self._status = 0
0 commit comments