# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1218679800 25200
# Node ID 1f30a898cb2e30587ebf094edf57bb911775b4c1
# Parent 0bd92300ca12c4fa58394f0426bc57d054a53c67
[TEST] 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 0bd92300ca12 -r 1f30a898cb2e
suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py Wed Aug
13 05:47:44 2008 -0700
+++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py Wed Aug
13 19:10:00 2008 -0700
@@ -26,9 +26,10 @@ from XenKvmLib import vsms
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,7 @@ def main():
if cim_ver != local_ver:
logger.error("CIM says version is `%s', but libvirt says
`%s'" \
% (cim_ver, local_ver))
- return FAIL
+ return XFAIL_RC(bug_libvirt)
else:
logger.info("Verified %s == %s" % (cim_ver, local_ver))
except Exception, details: