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

# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1228270172 28800 # Node ID 41662c73adfc88608ba4a9c1a84b2e4e448f7f0c # Parent 70ecd9e8867cc277b31f4703e73b5dba7ad53128 [TEST] #2 Fix ElementConforms/02_reverse.py with sblim-cmpi-base provider installed Signed-off-by: Guolian Yun <yunguol@cn.ibm.com> diff -r 70ecd9e8867c -r 41662c73adfc suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py --- a/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Mon Dec 01 22:15:38 2008 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Tue Dec 02 18:09:32 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 @@ -159,7 +159,9 @@ 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")

yunguol@cn.ibm.com wrote:
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1228270172 28800 # Node ID 41662c73adfc88608ba4a9c1a84b2e4e448f7f0c # Parent 70ecd9e8867cc277b31f4703e73b5dba7ad53128 [TEST] #2 Fix ElementConforms/02_reverse.py with sblim-cmpi-base provider installed
Signed-off-by: Guolian Yun <yunguol@cn.ibm.com>
diff -r 70ecd9e8867c -r 41662c73adfc suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py --- a/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Mon Dec 01 22:15:38 2008 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Tue Dec 02 18:09:32 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
You'll need to remove lines 153 - 155: if cn == 'Linux_ComputerSystem': status = XFAIL_RC(bug_sblim) else: -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com

libvirt-cim-bounces@redhat.com wrote on 2008-12-04 00:54:54:
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1228270172 28800 # Node ID 41662c73adfc88608ba4a9c1a84b2e4e448f7f0c # Parent 70ecd9e8867cc277b31f4703e73b5dba7ad53128 [TEST] #2 Fix ElementConforms/02_reverse.py with sblim-cmpi-base
yunguol@cn.ibm.com wrote: provider installed
Signed-off-by: Guolian Yun <yunguol@cn.ibm.com>
diff -r 70ecd9e8867c -r 41662c73adfc suites/libvirt-
cim/cimtest/ElementConforms/02_reverse.py
--- a/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Mon Dec 01 22:15:38 2008 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Tue Dec 02 18:09:32 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
You'll need to remove lines 153 - 155:
Good catch. I will fix on the next patch.
if cn == 'Linux_ComputerSystem': status = XFAIL_RC(bug_sblim) else:
-- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
participants (3)
-
Guo Lian Yun
-
Kaitlin Rupert
-
yunguol@cn.ibm.com