# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1224233286 25200
# Node ID 6985c0d24577f59bba4229fbed339d280ed06e63
# Parent 5be3bda6fb16a5ece5aa18c254d3d934fb2f8831
[TEST] Updating 01_forward.py of ElementConforms to work with/without
sblim-base-provider.
Tested with Xen, XenFV, KVM with current sources, with/without sblim-base-provider.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 5be3bda6fb16 -r 6985c0d24577
suites/libvirt-cim/cimtest/ElementConforms/01_forward.py
--- a/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Fri Oct 17 00:44:08 2008
-0700
+++ b/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Fri Oct 17 01:48:06 2008
-0700
@@ -45,16 +45,17 @@ from XenKvmLib.classes import get_typed_
from XenKvmLib.classes import get_typed_class
from XenKvmLib import vxml
from CimTest import Globals
-from XenKvmLib.common_util import print_field_error
+from XenKvmLib.common_util import print_field_error, check_sblim
from CimTest.Globals import logger, CIM_ERROR_ASSOCIATORS, CIM_ERROR_ENUMERATE
from XenKvmLib.const import do_main
-from CimTest.ReturnCodes import PASS, FAIL
+from CimTest.ReturnCodes import PASS, FAIL, XFAIL_RC
from XenKvmLib.enumclass import EnumInstances
from XenKvmLib.const import default_network_name, default_pool_name
sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
test_dom = "domU"
+bug_sblim = '00007'
def pool_init(verify_list, pool_cn, pool_name, virt):
ccn = get_typed_class(virt, pool_cn)
@@ -175,9 +176,13 @@ def verify_ectp_assoc(server, virt):
reg_classname,
InstanceID = devid)
if len(assoc_info) < 1:
- status = FAIL
- logger.error(" '%s' returned (%d) '%s'
objects", an,
- len(assoc_info), reg_classname)
+ ret_val, linux_cs = check_sblim(server, virt)
+ if ret_val != PASS:
+ logger.error(" '%s' returned (%d) '%s'
objects", an,
+ len(assoc_info), reg_classname)
+ return FAIL
+ else:
+ return XFAIL_RC(bug_sblim)
break
if 'DSP1059' in devid or 'DSP1045' in devid: