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

yunguol at cn.ibm.com yunguol at cn.ibm.com
Wed Dec 3 02:09:58 UTC 2008


# HG changeset patch
# User Guolian Yun <yunguol at 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 at 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")




More information about the Libvirt-cim mailing list