Skip to contentSkip to conversation

tests/functional/test_sparc64_tuxrun: Explicitly set the 'sun4u' machine

PATCH In review Thomas Huth 2 participants 2 messages May 21, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/functional/test_sparc64_tuxrun: Explicitly set the 'sun4u' machine

From: Thomas Huth <[email protected]>

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.

---
 tests/functional/test_sparc64_tuxrun.py | 1 +
 1 file changed, 1 insertion(+)
tests/functional/test_sparc64_tuxrun.py +1 -0
index 3be08d6102b..0d7b43dd74c 100755
@@ -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,
Signature · 1 line
2.49.0
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 7 lines · Thomas Huth

From: Thomas Huth <[email protected]>

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.

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro