From 609d75a04e7eb101ecec3ed282d22248e2cc7abe Mon Sep 17 00:00:00 2001 From: Praveen K Pandey Date: Tue, 14 May 2024 11:16:52 +0530 Subject: [PATCH] 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 --- common/OpTestUtil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/OpTestUtil.py b/common/OpTestUtil.py index 03e2d5676..765e6e3f7 100644 --- a/common/OpTestUtil.py +++ b/common/OpTestUtil.py @@ -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: