# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1213286618 -28800
# Node ID 05258fbd1be6829c9fba3184f15f0af773474c29
# Parent 254bc5464030a03b6f791fd49acd208f6ec1db23
[TEST] Update HostSystem.02 for LXC support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 254bc5464030 -r 05258fbd1be6
suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py
--- a/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Wed Jun 11 20:56:07
2008 +0800
+++ b/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Fri Jun 13 00:03:38
2008 +0800
@@ -60,7 +60,7 @@
verify_diskrasd_values, verify_memrasd_values
from XenKvmLib.const import CIM_REV
-sup_types = ['Xen', 'KVM', 'XenFV']
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
test_dom = "CrossClass_GuestDom"
@@ -121,10 +121,13 @@
else:
test_disk = "hda"
virt_xml = get_class(virt)
- vsxml_info = virt_xml(test_dom, mem = test_mem,
- vcpus=test_vcpus,
- mac = test_mac,
- disk = test_disk)
+ if virt == 'LXC':
+ vsxml_info = virt_xml(test_dom)
+ else:
+ vsxml_info = virt_xml(test_dom, mem = test_mem,
+ vcpus=test_vcpus,
+ mac = test_mac,
+ disk = test_disk)
ret = vsxml_info.define(server)
if not ret:
Show replies by date