Skip to content

Commit

Permalink
Add fixes from Abdul for following issues:
Browse files Browse the repository at this point in the history
 - Increase stalltime to handle console login, fixes hung at login prompt issue
   open-power#615
 - OpTestUtil.py : get_login fails due to timeout (Issue 626)

Signed-off-by: Abdul Haleem <[email protected]>
  • Loading branch information
sacsant committed Jun 14, 2021
1 parent 3ab9a0b commit dd2ff96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/OpTestHMC.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

WAITTIME = 15
BOOTTIME = 500
STALLTIME = 3
STALLTIME = 5


class OpHmcState():
Expand Down
2 changes: 1 addition & 1 deletion common/OpTestUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ def get_login(self, host, term_obj, pty, prompt):
pty.sendline(my_pwd)
time.sleep(0.5)
rc = pty.expect(['login: $', ".*#$", ".*# $", ".*\$", "~ #",
'Petitboot', pexpect.TIMEOUT, pexpect.EOF], timeout=10)
'Petitboot', pexpect.TIMEOUT, pexpect.EOF], timeout=60)
if rc not in [1, 2, 3, 4]:
if term_obj.setup_term_quiet == 0:
log.warning("OpTestSystem Problem with the login and/or password prompt,"
Expand Down

0 comments on commit dd2ff96

Please sign in to comment.