# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1231726993 28800
# Node ID 6cb990930f0c3e82c85d4e3437d7b9b5e0d0037a
# Parent 5cd63239ee18370a87d82b8d72856fa0f297b273
[TEST] Fix RASD/05_disk_rasd_emu_type.py to work with libvirt-cim rpm installed
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 5cd63239ee18 -r 6cb990930f0c
suites/libvirt-cim/cimtest/RASD/05_disk_rasd_emu_type.py
--- a/suites/libvirt-cim/cimtest/RASD/05_disk_rasd_emu_type.py Thu Jan 08 15:02:43 2009
-0800
+++ b/suites/libvirt-cim/cimtest/RASD/05_disk_rasd_emu_type.py Sun Jan 11 18:23:13 2009
-0800
@@ -26,7 +26,7 @@
from XenKvmLib.common_util import parse_instance_id
from XenKvmLib.const import do_main
from XenKvmLib.vxml import get_class
-from CimTest.ReturnCodes import PASS, FAIL
+from CimTest.ReturnCodes import PASS, FAIL, SKIP
from CimTest.Globals import logger
from XenKvmLib.const import get_provider_version
@@ -45,7 +45,8 @@
emu_types = [0, 1]
try:
for exp_emu_type in emu_types:
- cxml = get_class(options.virt)(default_dom, emu_type=exp_emu_type)
+ virt_xml = get_class(options.virt)
+ cxml = virt_xml(default_dom, emu_type=exp_emu_type)
ret = cxml.cim_define(options.ip)
if not ret:
logger.error("Failed to call DefineSystem()")