[PATCH v2] tests/functional/ppc: skip remote interrupts test if -net user not built

Shivang Upadhyay posted 1 patch 15 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260725174600.17683-1-shivangu@linux.ibm.com
Maintainers: Nicholas Piggin <npiggin@gmail.com>, Aditya Gupta <adityag@linux.ibm.com>, Glenn Miles <milesg@linux.ibm.com>, Harsh Prateek Bora <harshpb@linux.ibm.com>
tests/functional/ppc64/test_powernv.py | 1 +
1 file changed, 1 insertion(+)
[PATCH v2] tests/functional/ppc: skip remote interrupts test if -net user not built
Posted by Shivang Upadhyay 15 hours ago
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

Adding netdev user requirement for this test.

Suggested-by: Amit Machhiwal <amachhiw@linux.ibm.com>
Suggested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Shivang Upadhyay <shivangu@linux.ibm.com>
---
 tests/functional/ppc64/test_powernv.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/functional/ppc64/test_powernv.py b/tests/functional/ppc64/test_powernv.py
index bac2017e18..9a95b6011d 100755
--- a/tests/functional/ppc64/test_powernv.py
+++ b/tests/functional/ppc64/test_powernv.py
@@ -91,6 +91,7 @@ def test_linux_smt_boot(self):
     def test_linux_remote_interrupts(self):
         self.require_accelerator("tcg")
         self.set_machine('powernv')
+        self.require_netdev('user')
 
         # Have below setup in this test:
         # 1. e1000e attached to pcie.6, which is from 7th PHB, belonging to 2nd
-- 
2.54.0