[PATCH] [TEST] #3 Fix ElementConforms/02_reverse.py with sblim-cmpi-base provider installed

# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1228368669 28800 # Node ID 701f3228bdfe740f4a504dce1dfab844c812b9d5 # Parent 766607a007ebed33d006e950556c8d745fd0b58d [TEST] #3 Fix ElementConforms/02_reverse.py with sblim-cmpi-base provider installed Signed-off-by: Guolian Yun <yunguol@cn.ibm.com> diff -r 766607a007eb -r 701f3228bdfe suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py --- a/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Tue Dec 02 21:29:39 2008 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Wed Dec 03 21:31:09 2008 -0800 @@ -49,7 +49,7 @@ from XenKvmLib import enumclass from XenKvmLib.vxml import XenXML, KVMXML, get_class from XenKvmLib.classes import get_typed_class -from CimTest.ReturnCodes import PASS, FAIL, XFAIL_RC +from CimTest.ReturnCodes import PASS, FAIL from XenKvmLib.common_util import libvirt_cached_data_poll, get_cs_instance, \ get_host_info @@ -150,16 +150,15 @@ CreationClassName=cn, Name=name) if len(profs) != 1: - if cn == 'Linux_ComputerSystem': - status = XFAIL_RC(bug_sblim) - else: - logger.error("ElementConformsToProfile assoc failed") - status = FAIL + logger.error("ElementConformsToProfile assoc failed") + status = FAIL if status != PASS: cxml.undefine(server) return status - + + if cn == "Linux_ComputerSystem": + cn = get_typed_class(virt, "HostSystem") status = verify_profile(profs[0], exp_list[cn]) if status != PASS: logger.error("Verification of profile instance failed")
participants (1)
-
yunguol@cn.ibm.com