# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1259949819 28800
# Node ID 320b40f37a368cbc801b7e2761e84cf65136e118
# Parent c19371e7fb585e64291dafc2b7f84dc1f1d8255e
[TEST] Remove hardcoded image path in RPCS 09
Also fix a line that is over 80 characters long.
diff -r 2ba5bf416501 -r a2d8acd05db2 suites/libvirt-cim/cimtest/ResourcePoolConf
igurationService/09_DeleteDiskPool.py
diff -r c19371e7fb58 -r 320b40f37a36
suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/09_DeleteDiskPool.py
--- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/09_DeleteDiskPool.py Thu
Dec 03 14:12:00 2009 -0800
+++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/09_DeleteDiskPool.py Fri
Dec 04 10:03:39 2009 -0800
@@ -48,7 +48,8 @@
from XenKvmLib import rpcs_service
from CimTest.Globals import logger
from CimTest.ReturnCodes import FAIL, PASS
-from XenKvmLib.const import do_main, platform_sup, get_provider_version
+from XenKvmLib.const import do_main, platform_sup, get_provider_version, \
+ _image_dir
from XenKvmLib.enumclass import EnumInstances, EnumNames
from XenKvmLib.classes import get_typed_class
from XenKvmLib.pool import create_pool, verify_pool, undefine_diskpool
@@ -75,7 +76,8 @@
rpcs_conn.DeleteResourcePool()
except pywbem.CIMError, (err_no, desc):
if err_no == cim_errno :
- logger.info("Got expected exception for '%s' service",
cim_mname)
+ logger.info("Got expected exception for '%s' service",
+ cim_mname)
logger.info("Errno is '%s' ", err_no)
logger.info("Error string is '%s'", desc)
return PASS
@@ -87,7 +89,7 @@
elif curr_cim_rev >= libvirt_cim_child_pool_rev:
try:
- pool_attr = { "Path" : "/tmp" }
+ pool_attr = { "Path" : _image_dir }
status = create_pool(server, virt, test_pool, pool_attr,
pool_type="DiskPool", mode_type=TYPE)
if status != PASS: