]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/functional/test_sparc64_tuxrun: Explicitly set the 'sun4u' machine
authorThomas Huth <thuth@redhat.com>
Wed, 21 May 2025 14:51:12 +0000 (16:51 +0200)
committerThomas Huth <thuth@redhat.com>
Fri, 30 May 2025 07:52:08 +0000 (09:52 +0200)
Use self.set_machine() to set the machine instead of relying on the
default machine of the binary. This way the test can be skipped in
case the machine has not been compiled into the QEMU binary.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250521145112.142222-1-thuth@redhat.com>

tests/functional/test_sparc64_tuxrun.py

index 3be08d6102b7e3e014241a9bb5614c9de3c9f176..0d7b43dd74c69187c356233e807aa4e13ec37ca0 100755 (executable)
@@ -24,6 +24,7 @@ class TuxRunSparc64Test(TuxRunBaselineTest):
         '479c3dc104c82b68be55e2c0c5c38cd473d0b37ad4badccde4775bb88ce34611')
 
     def test_sparc64(self):
+        self.set_machine('sun4u')
         self.root='sda'
         self.wait_for_shutdown=False
         self.common_tuxrun(kernel_asset=self.ASSET_SPARC64_KERNEL,