Skip to content

Commit

Permalink
MachineConfig.py: osconfig command fails due to no prompt
Browse files Browse the repository at this point in the history
For the below combination of MachineConfig the job fails
{"lpar":"cpu=dedicated,vpmem=1,vtpm=1","os":"hugepage=2M"}

as the lparconfig power off and on the lpar and than the
osconfig do not find the prompt ready to run os commands

so with this fix we are waiting for lpar os to boot till
login and closing the console for next osConfig to open
and reset the prompt and continue

Signed-off-by: Abdul Haleem <[email protected]>
  • Loading branch information
abdhaleegit committed Nov 19, 2024
1 parent ccdd8af commit 2dda888
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testcases/MachineConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,8 @@ def LparSetup(self, lpar_config=""):
return "Failed to enable Performance Information collection"

self.cv_HMC.poweron_lpar()
time.sleep(30)
self.cv_SYSTEM.console.close()
curr_proc_mode = self.cv_HMC.get_proc_mode()
if proc_mode:
if proc_mode in curr_proc_mode:
Expand Down

0 comments on commit 2dda888

Please sign in to comment.