Skip to contentSkip to conversation

tests/functional/test_ppc64_pseries: Skip test_ppc64_linux_smt_boot if necessary

PATCH In review Thomas Huth 2 participants 2 messages Apr 24, 2025 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/functional/test_ppc64_pseries: Skip test_ppc64_linux_smt_boot if necessary

From: Thomas Huth <[email protected]>

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.

---
 tests/functional/test_ppc64_pseries.py | 1 +
 1 file changed, 1 insertion(+)
tests/functional/test_ppc64_pseries.py +1 -0
index fdc404ed033..67057934e8d 100755
@@ -63,6 +63,7 @@ def test_ppc64_linux_hpt_smp_boot(self):
         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'
Signature · 1 line
2.49.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Thomas Huth

From: Thomas Huth <[email protected]>

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.

Quoted 16 lines
---
  tests/functional/test_ppc64_pseries.py | 1 +
  1 file changed, 1 insertion(+)
tests/functional/test_ppc64_pseries.py +1 -0
index fdc404ed033..67057934e8d 100755
@@ -63,6 +63,7 @@ def test_ppc64_linux_hpt_smp_boot(self):
          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'