Skip to content

Commit f7dd006

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 less than VP max procs. Signed-off-by: Samir Mulani <[email protected]>
1 parent 035bb09 commit f7dd006

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
@@ -428,6 +428,9 @@ def change_proc_mode(self, proc_mode, sharing_mode, min_proc_units, desired_proc
428428
else:
429429
v_max_proc = max_virtual_proc
430430

431+
if desired_proc_units < v_max_proc:
432+
log.error("The test case is being canceled as we need to configure the system manually because desired_proc_units < v_max_proc.")
433+
431434
self.set_lpar_cfg("proc_mode=shared,sharing_mode=%s,min_proc_units=%s,max_proc_units=%s,"
432435
"desired_proc_units=%s,min_procs=%s,desired_procs=%s,max_procs=%s,"
433436
"min_mem=%s,desired_mem=%s,max_mem=%s" %

0 commit comments

Comments
 (0)