Skip to content

Commit 2dda888

Browse files
committed
MachineConfig.py: osconfig command fails due to no prompt
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]>
1 parent ccdd8af commit 2dda888

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testcases/MachineConfig.py

+2
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,8 @@ def LparSetup(self, lpar_config=""):
431431
return "Failed to enable Performance Information collection"
432432

433433
self.cv_HMC.poweron_lpar()
434+
time.sleep(30)
435+
self.cv_SYSTEM.console.close()
434436
curr_proc_mode = self.cv_HMC.get_proc_mode()
435437
if proc_mode:
436438
if proc_mode in curr_proc_mode:

0 commit comments

Comments
 (0)