# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1236099384 28800
# Node ID 04affa1172676d8872be3e58b55697bd7513febf
# Parent c3a6bfa4f41b69ed75f511e199b57fa2b9afd129
[TEST] Modifying SettingsDefine/04_sds_rev_errs.py tc to use cim_define() and cim_start(),
cim_destroy().
Also, removed un necessary import statements.
Tested with Xen/XenFV for RHEL 5.3 rpm.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r c3a6bfa4f41b -r 04affa117267
suites/libvirt-cim/cimtest/SettingsDefine/04_sds_rev_errs.py
--- a/suites/libvirt-cim/cimtest/SettingsDefine/04_sds_rev_errs.py Tue Mar 03 08:47:40
2009 -0800
+++ b/suites/libvirt-cim/cimtest/SettingsDefine/04_sds_rev_errs.py Tue Mar 03 08:56:24
2009 -0800
@@ -54,7 +54,6 @@
import sys
import pywbem
-from VirtLib import utils
from XenKvmLib import assoc
from XenKvmLib import vxml
from XenKvmLib.common_util import try_assoc
@@ -111,10 +110,16 @@ def main():
cxml = virt_xml(test_dom, vcpus = test_vcpus, mac = test_mac,
disk = test_disk)
- ret = cxml.create(options.ip)
+ ret = cxml.cim_define(options.ip)
if not ret:
- logger.error("Failed to Create the dom: %s", test_dom)
+ logger.error("Failed to define the dom: %s", test_dom)
return FAIL
+
+ status = cxml.cim_start(options.ip)
+ if status != PASS:
+ cxml.undefine(options.ip)
+ logger.error("Failed to start the dom: %s", test_dom)
+ return status
global conn
conn = assoc.myWBEMConnection('http://%s' % options.ip, (CIM_USER, \
@@ -145,7 +150,7 @@ def main():
if retval != PASS:
status = retval
- cxml.destroy(options.ip)
+ cxml.cim_destroy(options.ip)
cxml.undefine(options.ip)
return status