Skip to content

Commit

Permalink
Additional timeout required for bisection
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Haleem <abdhalee@linux.vnet.ibm.com>
  • Loading branch information
abdhaleegit committed Nov 18, 2024
1 parent d9579dd commit 43e76e6
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/OpTestHMC.py
Original file line number Diff line number Diff line change
@@ -1325,7 +1325,7 @@ def get_console(self, logger=None):
self.util.clear_state(self)
self.connect(logger=logger)
time.sleep(STALLTIME)
l_rc = self.pty.expect(["login:", pexpect.TIMEOUT], timeout=30)
l_rc = self.pty.expect(["login:", pexpect.TIMEOUT], timeout=80)
if l_rc == 0:
self.pty.send('\r')
# In case when OS reboot/multireboot test and we lose prompt, reset prompt
2 changes: 1 addition & 1 deletion common/OpTestSSH.py
Original file line number Diff line number Diff line change
@@ -181,7 +181,7 @@ def connect(self, logger=None):
self.pty.delaybeforesend = self.delaybeforesend
self.pty.logfile_read = OpTestLogger.FileLikeLogger(self.log)
# delay here in case messages like afstokenpassing unsupported show up which mess up setup_term
time.sleep(2)
time.sleep(5)
self.check_set_term()
log.debug("CONNECT starts Expect Buffer ID={}".format(hex(id(self.pty))))
return self.pty
2 changes: 1 addition & 1 deletion common/OpTestUtil.py
Original file line number Diff line number Diff line change
@@ -1658,7 +1658,7 @@ def setup_term(self, system, pty, ssh_obj=None, block=0):
return

rc = pty.expect(['login: $', ".*#$", ".*# $", ".*\$", "~>", "~ #",
'Petitboot', pexpect.TIMEOUT, pexpect.EOF], timeout=30)
'Petitboot', pexpect.TIMEOUT, pexpect.EOF], timeout=60)
if rc == 0:
track_obj.PS1_set, track_obj.LOGIN_set = self.get_login(
system_obj.cv_HOST, term_obj, pty, self.build_prompt(system_obj.prompt))

0 comments on commit 43e76e6

Please sign in to comment.