Skip to contentSkip to conversation

tests/functional/test_pc_cpu_hotplug_props: Set 'pc' machine type explicitly

PATCH New Thomas Huth 1 participant 1 message Jun 6, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/functional/test_pc_cpu_hotplug_props: Set 'pc' machine type explicitly

From: Thomas Huth <[email protected]>

In case the default machine has not been compiled into the QEMU binary, the cpu_hotplug_props test is currently failing. Add a set_machine('pc') here to make sure that the tests are correctly skipped in case the machine is not available.

---
 tests/functional/test_pc_cpu_hotplug_props.py | 1 +
 1 file changed, 1 insertion(+)
tests/functional/test_pc_cpu_hotplug_props.py +1 -0
index 9d5a37cb170..2bed8ada023 100755
@@ -26,6 +26,7 @@
 class OmittedCPUProps(QemuSystemTest):
 
     def test_no_die_id(self):
+        self.set_machine('pc')
         self.vm.add_args('-nodefaults', '-S')
         self.vm.add_args('-smp', '1,sockets=2,cores=2,threads=2,maxcpus=8')
         self.vm.add_args('-device', 'qemu64-x86_64-cpu,socket-id=1,core-id=0,thread-id=0')
Signature · 1 line
2.49.0