Skip to content

Commit

Permalink
Fixed login prompt issue as couple of system has new login prompt
Browse files Browse the repository at this point in the history
added wildcard as :~ as , in couple of system op-test error out as not get exact wild card

Signed-off-by: Praveen K Pandey <[email protected]>
  • Loading branch information
PraveenPenguin committed May 14, 2024
1 parent 417e57e commit 609d75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/OpTestUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -1484,7 +1484,7 @@ def get_login(self, host, term_obj, pty, prompt):
if rc == 0:
pty.sendline(my_pwd)
time.sleep(0.5)
rc = pty.expect(['login: $', ".*#$", ".*# $", ".*\$", "~ #",
rc = pty.expect(['login: $', ".*#$", ".*# $", ".*\$", "~ #", ":~",
'Petitboot', pexpect.TIMEOUT, pexpect.EOF], timeout=60)
if rc not in [1, 2, 3, 4]:
if term_obj.setup_term_quiet == 0:
Expand Down

0 comments on commit 609d75a

Please sign in to comment.