# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1207208862 -19800
# Node ID cbadbbee26c59304d6ef6a46e94eeb9b5dbed26b
# Parent bf376e97b3ea01ee72ce429ca5ecacb709aa6dae
[TEST].2# Fixing the 01_verify_rasd_fields.py tc.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r bf376e97b3ea -r cbadbbee26c5
suites/libvirt-cim/cimtest/RASD/01_verify_rasd_fields.py
--- a/suites/libvirt-cim/cimtest/RASD/01_verify_rasd_fields.py Wed Apr 02 00:52:23 2008
-0700
+++ b/suites/libvirt-cim/cimtest/RASD/01_verify_rasd_fields.py Thu Apr 03 13:17:42 2008
+0530
@@ -86,7 +86,7 @@ def init_list(virt="Xen"):
"CreationClassName": get_typed_class(virt,
'NetResourceAllocationSettingData')
}
- address = eval("%s.%s" % (get_class(virt), 'disk_path'))
+ address = vsxml.xml_get_disk_source()
diskrasd = {
"InstanceID" : '%s/%s' %(test_dom, test_disk), \
"ResourceType" : 17, \
@@ -133,6 +133,7 @@ def assoc_values(ip, assoc_info, virt="X
@do_main(sup_types)
def main():
+ global vsxml
options = main.options
status = 0
rc = 1
@@ -171,7 +172,7 @@ def main():
status = assoc_values(options.ip, assoc_info, options.virt)
except Exception, details:
logger.error(Globals.CIM_ERROR_ASSOCIATORS, \
- get_typed_class('VirtualSystemSettingDataComponent',
options.virt))
+ get_typed_class(options.virt,
'VirtualSystemSettingDataComponent'))
logger.error("Exception : %s" % details)
status = 1
Show replies by date