From: Shivang Upadhyay <shivangu@linux.ibm.com>
To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org
Cc: adityag@linux.ibm.com, amachhiw@linux.ibm.com,
harshpb@linux.ibm.com, milesg@linux.ibm.com, npiggin@gmail.com,
Shivang Upadhyay <shivangu@linux.ibm.com>
Subject: [PATCH] tests/functional/ppc: skip remote interrupts test if -net user not built
Date: Fri, 24 Jul 2026 14:24:40 +0530 [thread overview]
Message-ID: <20260724085440.520125-1-shivangu@linux.ibm.com> (raw)
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
next reply other threads:[~2026-07-24 8:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-24 8:54 Shivang Upadhyay [this message]
2026-07-24 9:02 ` [PATCH] tests/functional/ppc: skip remote interrupts test if -net user not built Thomas Huth
2026-07-24 13:30 ` Shivang Upadhyay
2026-07-24 9:22 ` Amit Machhiwal
2026-07-24 13:26 ` Shivang Upadhyay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260724085440.520125-1-shivangu@linux.ibm.com \
--to=shivangu@linux.ibm.com \
--cc=adityag@linux.ibm.com \
--cc=amachhiw@linux.ibm.com \
--cc=harshpb@linux.ibm.com \
--cc=milesg@linux.ibm.com \
--cc=npiggin@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.