Skip to content

Commit 609d75a

Browse files
Fixed login prompt issue as couple of system has new login prompt
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]>
1 parent 417e57e commit 609d75a

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
@@ -1484,7 +1484,7 @@ def get_login(self, host, term_obj, pty, prompt):
14841484
if rc == 0:
14851485
pty.sendline(my_pwd)
14861486
time.sleep(0.5)
1487-
rc = pty.expect(['login: $', ".*#$", ".*# $", ".*\$", "~ #",
1487+
rc = pty.expect(['login: $', ".*#$", ".*# $", ".*\$", "~ #", ":~",
14881488
'Petitboot', pexpect.TIMEOUT, pexpect.EOF], timeout=60)
14891489
if rc not in [1, 2, 3, 4]:
14901490
if term_obj.setup_term_quiet == 0:

0 commit comments

Comments
 (0)