# HG changeset patch
# User Deepti B. Kalakeri <deeptik@linux..vnet.ibm.com>
# Date 1250150545 25200
# Node ID e8bb9c334a06962f8fbc5e12d649b9f539c077f8
# Parent 090c55ea601c4ef759475bf1d0b64eae9c8f33b8
[TEST] Updating VSMS/13*py to align with the Vdev changes.
Tested with KVM on F10 and Xen on RHEL5.3 with current sources.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 090c55ea601c -r e8bb9c334a06
suites/libvirt-cim/cimtest/VirtualSystemManagementService/13_refconfig_additional_devs.py
---
a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/13_refconfig_additional_devs.py Wed
Aug 12 04:28:07 2009 -0700
+++
b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/13_refconfig_additional_devs.py Thu
Aug 13 01:02:25 2009 -0700
@@ -27,7 +27,8 @@
from XenKvmLib import vsms
from VirtLib import utils
from CimTest.Globals import logger
-from XenKvmLib.const import do_main
+from XenKvmLib.const import do_main, KVM_secondary_disk_path, \
+ Xen_secondary_disk_path
from CimTest.ReturnCodes import FAIL, PASS
from XenKvmLib.test_doms import destroy_and_undefine_domain
from XenKvmLib.classes import get_typed_class
@@ -120,7 +121,15 @@
virt_xml = get_class(options.virt)
cxml = virt_xml(test_dom, mac=mac1)
- cxml2 = virt_xml(test_dom2, mac=mac2)
+ if options.virt == 'Xen':
+ test_disk = 'xvdb'
+ disk_path = Xen_secondary_disk_path
+ else:
+ test_disk = 'hdb'
+ disk_path = KVM_secondary_disk_path
+
+ cxml2 = virt_xml(test_dom2, mac=mac2,
+ disk=test_disk, disk_file_path=disk_path)
try:
rc = cxml.cim_define(options.ip)
Show replies by date