All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests/functional/ppc: skip remote interrupts test if -net user not built
@ 2026-07-24  8:54 Shivang Upadhyay
  2026-07-24  9:02 ` Thomas Huth
  2026-07-24  9:22 ` Amit Machhiwal
  0 siblings, 2 replies; 5+ messages in thread
From: Shivang Upadhyay @ 2026-07-24  8:54 UTC (permalink / raw)
  To: qemu-devel, qemu-ppc
  Cc: adityag, amachhiw, harshpb, milesg, npiggin, Shivang Upadhyay

While running remote interrupts test, without libslirp-devel installed,
facing the following panic logs.

  File
    ...
    raise VMLaunchFailure(
    ...<3 lines>...
    ) from exc
    ...
        Output: qemu-system-ppc64: -netdev user,id=net0: network backend
'user' is not compiled into this binary

Skipping the test if vm fails to launch.

Signed-off-by: Shivang Upadhyay <shivangu@linux.ibm.com>
---
 tests/functional/ppc64/test_powernv.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/functional/ppc64/test_powernv.py b/tests/functional/ppc64/test_powernv.py
index bac2017e18..73ba4e7221 100755
--- a/tests/functional/ppc64/test_powernv.py
+++ b/tests/functional/ppc64/test_powernv.py
@@ -11,6 +11,8 @@
 from qemu_test import wait_for_console_pattern
 from qemu_test import exec_command_and_wait_for_pattern
 
+from qemu.machine.machine import VMLaunchFailure
+
 class PowernvMachine(LinuxKernelTest):
 
     timeout = 90
@@ -112,7 +114,11 @@ def test_linux_remote_interrupts(self):
             f'file={rootfs_path},format=raw,if=none,id=drive0,readonly=on',
             '-append', 'root=/dev/nvme0n1 console=hvc0',
             '-device', 'nvme,drive=drive0,bus=pcie.2,addr=0x0,serial=1234')
-        self.vm.launch()
+        try:
+            self.vm.launch()
+        except VMLaunchFailure:
+            # Maybe not compiled with netuser backend
+            self.skipTest(f'Could not find -net user')
 
         # Wait for boot to complete
         console_pattern = 'CPU maps initialized for 1 thread per core'
-- 
2.54.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-07-24 13:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-24  8:54 [PATCH] tests/functional/ppc: skip remote interrupts test if -net user not built Shivang Upadhyay
2026-07-24  9:02 ` Thomas Huth
2026-07-24 13:30   ` Shivang Upadhyay
2026-07-24  9:22 ` Amit Machhiwal
2026-07-24 13:26   ` Shivang Upadhyay

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.