diff --git a/qemu/tests/cpu_device_hotplug_maximum.py b/qemu/tests/cpu_device_hotplug_maximum.py index 52b9beb1e910058426f78a4f5d742cc9bab3e057..d74e291fbbe44ed064f0ed00e337bab105158922 100644 --- a/qemu/tests/cpu_device_hotplug_maximum.py +++ b/qemu/tests/cpu_device_hotplug_maximum.py @@ -1,5 +1,6 @@ import re import logging +import platform from os import uname from avocado.utils import cpu @@ -28,7 +29,10 @@ def run(test, params, env): :param env: Dictionary with test environment. """ os_type = params["os_type"] - machine_type = params["machine_type"] + if platform.machine() == 'aarch64': + machine_type = params["machine_type"].split(':', 1)[1] + else: + machine_type = params["machine_type"] reboot_timeout = params.get_numeric("reboot_timeout") mismatch_text = "Actual number of guest CPUs is not equal to the expected" not_equal_text = "CPU quantity mismatched! Guest got %s but expected is %s"