Skip to content

Commit

Permalink
Merge pull request #811 from shirishaganta1/lpar-config
Browse files Browse the repository at this point in the history
MachineConfig.py: Add support for max procs to available procs of CEC
  • Loading branch information
PraveenPenguin authored Mar 14, 2024
2 parents 8ce8dff + 95f59ce commit 8b9601c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions testcases/MachineConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def LparSetup(self):
self.desired_proc_units = "2"
try: self.max_proc_units = conf.args.max_proc_units
except AttributeError:
self.max_proc_units = "2"
self.max_proc_units = int(float(self.cv_HMC.get_available_proc_resources()[0]))
proc_mode = 'ded'
curr_proc_mode = self.cv_HMC.get_proc_mode()
if proc_mode in curr_proc_mode:
Expand Down Expand Up @@ -319,9 +319,7 @@ def LparSetup(self):
if self.sb_enable is not None :
self.cv_HMC.hmc_secureboot_on_off(self.sb_enable)

self.cv_HMC.run_command("chsysstate -r lpar -m %s -o on -n %s -f %s" %
(self.system_name, self.lpar_name, self.lpar_prof))
time.sleep(5)
self.cv_HMC.poweron_lpar()
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 8b9601c

Please sign in to comment.