]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/functional/test_ppc64_pseries: Skip test_ppc64_linux_smt_boot if necessary
authorThomas Huth <thuth@redhat.com>
Thu, 24 Apr 2025 08:54:26 +0000 (10:54 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 30 Apr 2025 18:44:20 +0000 (20:44 +0200)
The test_ppc64_linux_smt_boot function lacks the set_machine('pseries'),
so this test is currently failing in case the 'pseries' machine has not
been compiled into the binary. Add the check now to fix it.

Message-ID: <20250424085426.663377-1-thuth@redhat.com>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/functional/test_ppc64_pseries.py

index fdc404ed033d4e01d86d132f7e80c108518e1258..67057934e8d2f1a0baa020072ed5221c794ca03d 100755 (executable)
@@ -63,6 +63,7 @@ class pseriesMachine(QemuSystemTest):
         wait_for_console_pattern(self, self.good_message, self.panic_message)
 
     def test_ppc64_linux_smt_boot(self):
+        self.set_machine('pseries')
         self.vm.add_args('-smp', '4,threads=4')
         self.do_test_ppc64_linux_boot()
         console_pattern = 'CPU maps initialized for 4 threads per core'