Skip to contentSkip to conversation

tests/functional: Use -no-shutdown in the hppa_seabios test

PATCH In review Thomas Huth 3 participants 3 messages May 8, 2025 – May 9, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/functional: Use -no-shutdown in the hppa_seabios test

From: Thomas Huth <[email protected]>

qemu-system-hppa shuts down automatically when the BIOS is unable to boot from any device. So this test currently fails occasionally when QEMU already quit, but the test still expected it to be around (e.g. to shut it down cleanly). Adding a "-no-shutdown" seems to make it reliable. While we're at it, also remove the stray "self.machine" in there that does not have any purpose.

---
 tests/functional/test_hppa_seabios.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/functional/test_hppa_seabios.py +1 -1
index a44d1a3eebe..661b2464e13 100755
@@ -17,9 +17,9 @@ class HppaSeabios(QemuSystemTest):
     def boot_seabios(self):
         mach = self.machine
         bits = self.MACH_BITS[mach]
+        self.vm.add_args('-no-shutdown')
         self.vm.set_console()
         self.vm.launch()
-        self.machine
         wait_for_console_pattern(self, f'SeaBIOS PA-RISC {bits}-bit Firmware')
         wait_for_console_pattern(self, f'Emulated machine:     HP {mach} ({bits}-bit')
 
Signature · 1 line
2.49.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Thomas Huth

From: Thomas Huth <[email protected]>

qemu-system-hppa shuts down automatically when the BIOS is unable to boot from any device. So this test currently fails occasionally when QEMU already quit, but the test still expected it to be around (e.g. to shut it down cleanly). Adding a "-no-shutdown" seems to make it reliable. While we're at it, also remove the stray "self.machine" in there that does not have any purpose.

Quoted 4 lines
---
 tests/functional/test_hppa_seabios.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
Reviewed-by on v1 1/1
#2 lore raw
In reply to Thomas Huth
Quoted 20 lines · Thomas Huth

From: Thomas Huth <[email protected]>

qemu-system-hppa shuts down automatically when the BIOS is unable to boot from any device. So this test currently fails occasionally when QEMU already quit, but the test still expected it to be around (e.g. to shut it down cleanly). Adding a "-no-shutdown" seems to make it reliable. While we're at it, also remove the stray "self.machine" in there that does not have any purpose.

---
  tests/functional/test_hppa_seabios.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tests/functional/test_hppa_seabios.py +0 -0
index a44d1a3eebe..661b2464e13 100755

tests/functional/test_hppa_seabios.py class HppaSeabios(QemuSystemTest): · line 22

Quoted 7 lines
tests/functional/test_hppa_seabios.py +1 -1
@@ -17,9 +17,9 @@ class HppaSeabios(QemuSystemTest):
      def boot_seabios(self):
          mach = self.machine
          bits = self.MACH_BITS[mach]
+        self.vm.add_args('-no-shutdown')
          self.vm.set_console()
          self.vm.launch()
-        self.machine

Oops, thanks =)