1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 10:50:51 +01:00

gem5: Fix prompt matching

Add '$ ' to prompt matching, which was previously missing.
This commit is contained in:
Sascha Bischoff 2017-11-08 08:38:01 +00:00
parent a7b9ef594f
commit efbd04992d

View File

@ -605,7 +605,7 @@ class Gem5Connection(TelnetConnection):
try: try:
# Try and force a prompt to be shown # Try and force a prompt to be shown
self.conn.send('\n') self.conn.send('\n')
self.conn.expect([r'# ', self.conn.UNIQUE_PROMPT, r'\[PEXPECT\][\\\$\#]+ '], timeout=60) self.conn.expect([r'# ', r'\$ ', self.conn.UNIQUE_PROMPT, r'\[PEXPECT\][\\\$\#]+ '], timeout=60)
prompt_found = True prompt_found = True
except TIMEOUT: except TIMEOUT:
pass pass