Skip to content

Commit e197972

Browse files
authoredAug 14, 2024
Merge pull request #859 from abdhaleegit/fedora-prompt-fix
Fedora: handle ssh prompt with extra console chars
2 parents 2f8dbb0 + 2f29c95 commit e197972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎common/OpTestUtil.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1688,7 +1688,7 @@ def setup_term(self, system, pty, ssh_obj=None, block=0):
16881688
# Ctrl-L may cause a esc[J (erase) character to appear in the buffer.
16891689
# Include this in the patterns that expect $ (end of line)
16901690
rc = pty.expect(['login: (\x1b\[J)*$', ".*#(\x1b\[J)*$", ".*# (\x1b\[J)*$", ".*\$(\x1b\[J)*",
1691-
"~>(\x1b\[J)", "~ #(\x1b\[J)", ":~(\x1b\[J)", 'Petitboot', pexpect.TIMEOUT, pexpect.EOF], timeout=30)
1691+
"~>(\x1b\[J)", "~ #(\x1b\[J)", ":~(\x1b\[J)*", 'Petitboot', pexpect.TIMEOUT, pexpect.EOF], timeout=30)
16921692
if rc == 0:
16931693
track_obj.PS1_set, track_obj.LOGIN_set = self.get_login(
16941694
system_obj.cv_HOST, term_obj, pty, self.build_prompt(system_obj.prompt))

0 commit comments

Comments
 (0)
Please sign in to comment.