]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/functional: Use -no-shutdown in the hppa_seabios test
authorThomas Huth <thuth@redhat.com>
Thu, 8 May 2025 18:09:18 +0000 (20:09 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 8 May 2025 19:38:40 +0000 (15:38 -0400)
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.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20250508180918.228757-1-thuth@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/functional/test_hppa_seabios.py

index a44d1a3eebee2b41ed695be0dc6982200383a3ca..661b2464e1328af84449733ce43bf26d4d1df06e 100755 (executable)
@@ -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')