[Libvirt-cim] [PATCH] [TEST] Update HostSystem.02 for LXC support

yunguol at cn.ibm.com yunguol at cn.ibm.com
Thu Jun 19 05:43:41 UTC 2008


# HG changeset patch
# User Guolian Yun <yunguol at cn.ibm.com>
# Date 1213854217 -28800
# Node ID 05f9fe06593c989e3dab2574b5d59b74afc013b5
# Parent  fc18447de1be94d839fdb1619811c1294bb279f9
[TEST] Update HostSystem.02 for LXC support

Signed-off-by: Guolian Yun <yunguol at cn.ibm.com>

diff -r fc18447de1be -r 05f9fe06593c suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py
--- a/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py	Wed Jun 18 06:00:10 2008 -0700
+++ b/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py	Thu Jun 19 13:43:37 2008 +0800
@@ -59,7 +59,7 @@
 from XenKvmLib.rasd import verify_procrasd_values, verify_netrasd_values, \
 verify_diskrasd_values, verify_memrasd_values, rasd_init_list
 
-sup_types = ['Xen', 'KVM', 'XenFV']
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
 
 
 test_dom    = "CrossClass_GuestDom"
@@ -77,10 +77,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:




More information about the Libvirt-cim mailing list