Skip to content

Commit 28cf924

Browse files
author
Anushree-Mathur
committed
Cancel the testcase as maximum mode is not supported for ppc!
Added a condition to cancel a testcase if machine is ppc64 or ppc64le and cpu_mode is maximum as this mode is not supported for power architecture. Signed-off-by: Anushree-Mathur <[email protected]>
1 parent 875c970 commit 28cf924

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libvirt/tests/src/cpu/vcpu_misc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ def update_cpu_xml(vmxml, params, test):
9292
with_topology = "yes" == params.get("with_topology", "no")
9393
customize_cpu_features = "yes" == params.get("customize_cpu_features", "no")
9494

95+
# Check for machine type for mode as maximum
96+
if (platform.machine() in ['ppc64', 'ppc64le']) and (cpu_mode == "maximum"):
97+
test.cancel("\"maximum\" mode is not supported in power arch")
98+
9599
# Create cpu xml for test
96100
if vmxml.xmltreefile.find('cpu'):
97101
cpu_xml = vmxml.cpu

0 commit comments

Comments
 (0)