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 <[email protected]>
---
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