Skip to content

Commit 316c2c1

Browse files
author
Anushree-Mathur
committed
Handling kqemu testcase as libvirt dropped it 2.19.2 onwards!
Support for kqemu was dropped in libvirt by commit 8e91a400c, so it is failing as expected. I have added the condition to cancel this testcase if libvirt version is greater than 2.19.2! Signed-off-by: Anushree-Mathur <anushree.mathur@linux.ibm.com>
1 parent 5944e17 commit 316c2c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libvirt/tests/src/virsh_cmd/host/virsh_maxvcpus.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ def run(test, params, env):
3131
status_error = params.get("status_error")
3232
connect_arg = params.get("connect_arg", "")
3333

34+
# Checking libvirt version before running maxvcpus with kqemu
35+
if libvirt_version.version_compare(2, 19, 2):
36+
if "kqemu" in option:
37+
test.cancel("kqemu support was removed starting from libvirt 2.19.2 and QEMU 0.12")
38+
3439
# params for transport connect.
3540
local_ip = params.get("local_ip", "ENTER.YOUR.LOCAL.IP")
3641
local_pwd = params.get("local_pwd", "ENTER.YOUR.LOCAL.ROOT.PASSWORD")

0 commit comments

Comments
 (0)