Skip to content

Commit

Permalink
Cancel test case if EC desired procs > VP max procs
Browse files Browse the repository at this point in the history
Added support to cancel the test case if desired EC procs are greater than
VP max procs.

Signed-off-by: Samir Mulani <[email protected]>
  • Loading branch information
SamirMulani committed Feb 18, 2025
1 parent 4a7c667 commit 9661ea2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/OpTestHMC.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,9 @@ def change_proc_mode(self, proc_mode, sharing_mode, min_proc_units, desired_proc
if max_proc_units > v_max_proc:
max_proc_units = v_max_proc

if overcommit_ratio*int(desired_proc_units) > v_max_proc:
log.error("The test case is being canceled as we need to configure the system manually because oc*desired_proc_units > v_max_proc.")

self.set_lpar_cfg("proc_mode=shared,sharing_mode=%s,min_proc_units=%s,max_proc_units=%s,"
"desired_proc_units=%s,min_procs=%s,desired_procs=%s,max_procs=%s,"
"min_mem=%s,desired_mem=%s,max_mem=%s" %
Expand Down

0 comments on commit 9661ea2

Please sign in to comment.