From 2dda888d269d5589781f51046cb91b00a9c00cef Mon Sep 17 00:00:00 2001 From: Abdul Haleem Date: Tue, 19 Nov 2024 15:08:14 +0530 Subject: [PATCH] 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 --- testcases/MachineConfig.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testcases/MachineConfig.py b/testcases/MachineConfig.py index 36718c9e..560ff222 100755 --- a/testcases/MachineConfig.py +++ b/testcases/MachineConfig.py @@ -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: