# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1219034073 25200
# Node ID 6a75861bbe432d0cc8f143783cb5d00a75101ecb
# Parent e630c2a2e032d2c6e5f6314790ad1601c1381480
[TEST] #2 Fix VSMS-10_hv_version.py to XFAIL status because that libvirt does not support
virConnectGetVersion function
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r e630c2a2e032 -r 6a75861bbe43
suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py Mon Aug
11 09:05:45 2008 -0700
+++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py Sun Aug
17 21:34:33 2008 -0700
@@ -26,9 +26,10 @@
from XenKvmLib import vsms
from CimTest.Globals import do_main
from CimTest.Globals import logger
-from CimTest.ReturnCodes import FAIL, PASS
+from CimTest.ReturnCodes import FAIL, PASS, XFAIL_RC
sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
+bug_libvirt = "00006"
@do_main(sup_types)
def main():
@@ -51,7 +52,10 @@
if cim_ver != local_ver:
logger.error("CIM says version is `%s', but libvirt says
`%s'" \
% (cim_ver, local_ver))
- return FAIL
+ if options.virt == 'LXC':
+ return XFAIL_RC(bug_libvirt)
+ else:
+ return FAIL
else:
logger.info("Verified %s == %s" % (cim_ver, local_ver))
except Exception, details: