Skip to content

Commit 9661ea2

Browse files
committed
Cancel test case if EC desired procs > VP max procs
Added support to cancel the test case if desired EC procs are greater than VP max procs. Signed-off-by: Samir Mulani <[email protected]>
1 parent 4a7c667 commit 9661ea2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common/OpTestHMC.py

+3
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,9 @@ def change_proc_mode(self, proc_mode, sharing_mode, min_proc_units, desired_proc
431431
if max_proc_units > v_max_proc:
432432
max_proc_units = v_max_proc
433433

434+
if overcommit_ratio*int(desired_proc_units) > v_max_proc:
435+
log.error("The test case is being canceled as we need to configure the system manually because oc*desired_proc_units > v_max_proc.")
436+
434437
self.set_lpar_cfg("proc_mode=shared,sharing_mode=%s,min_proc_units=%s,max_proc_units=%s,"
435438
"desired_proc_units=%s,min_procs=%s,desired_procs=%s,max_procs=%s,"
436439
"min_mem=%s,desired_mem=%s,max_mem=%s" %

0 commit comments

Comments
 (0)