]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/functional/test_pc_cpu_hotplug_props: Set 'pc' machine type explicitly
authorThomas Huth <thuth@redhat.com>
Fri, 6 Jun 2025 09:20:33 +0000 (11:20 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 25 Jun 2025 14:56:25 +0000 (16:56 +0200)
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.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250606092033.506736-1-thuth@redhat.com>

tests/functional/test_pc_cpu_hotplug_props.py

index 9d5a37cb170ce23938534f1f11b95d8eb1324146..2bed8ada02324a81a680636709310120ef0092ad 100755 (executable)
@@ -26,6 +26,7 @@ from qemu_test import QemuSystemTest
 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')