[PATCH] [TEST]Fixing the 01_verify_rasd_fields.py tc

# HG changeset patch # User Deepti B. Kalakeri <deeptik@linux.vnet.ibm.com> # Date 1207206886 -19800 # Node ID a6d6b7807c9a4b3f76b310d049f61e2c67712bfc # Parent 104b65ee0d5f0bb2af8e140b6b1e194d75bab44f [TEST]Fixing the 01_verify_rasd_fields.py tc. diff -r 104b65ee0d5f -r a6d6b7807c9a suites/libvirt-cim/cimtest/RASD/01_verify_rasd_fields.py --- a/suites/libvirt-cim/cimtest/RASD/01_verify_rasd_fields.py Thu Apr 03 11:56:56 2008 +0530 +++ b/suites/libvirt-cim/cimtest/RASD/01_verify_rasd_fields.py Thu Apr 03 12:44:46 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
participants (1)
-
Deepti B. Kalakeri