Skip to content

Commit 019bd74

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 019bd74

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libvirt/tests/src/cpu/vcpu_misc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import logging as log
22
import os
3+
import platform
34
import re
45

56
from avocado.utils import process
@@ -92,6 +93,10 @@ def update_cpu_xml(vmxml, params, test):
9293
with_topology = "yes" == params.get("with_topology", "no")
9394
customize_cpu_features = "yes" == params.get("customize_cpu_features", "no")
9495

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

0 commit comments

Comments
 (0)