Added regex to recognize prompt (#31947)

This commit is contained in:
Charles Tolley 2017-10-23 08:04:10 -06:00 committed by Ganesh Nalawade
parent 4ffd60a406
commit 531d6c50bf

View file

@ -31,7 +31,8 @@ class TerminalModule(TerminalBase):
terminal_stdout_re = [
re.compile(br"[\r\n]?[\w]*\(.+\) ?#(?:\s*)$"),
re.compile(br"[pP]assword:$")
re.compile(br"[pP]assword:$"),
re.compile(br"(?<=\s)[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\s*#\s*$"),
]
terminal_stderr_re = [