[Libvirt-cim] [PATCH] [TEST] Update ElementSettingData.03 for LXC support

yunguol at cn.ibm.com yunguol at cn.ibm.com
Sat Jun 7 13:25:33 UTC 2008


# HG changeset patch
# User Guolian Yun <yunguol at cn.ibm.com>
# Date 1212845129 -28800
# Node ID 779ea9944c79488d4586aae3e0174d82801aa5af
# Parent  fee941e683a399cb96994f863026ec3837841934
[TEST] Update ElementSettingData.03 for LXC support

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

diff -r fee941e683a3 -r 779ea9944c79 suites/libvirt-cim/cimtest/ElementSettingData/03_esd_assoc_with_rasd_errs.py
--- a/suites/libvirt-cim/cimtest/ElementSettingData/03_esd_assoc_with_rasd_errs.py	Thu Jun 05 09:51:04 2008 +0800
+++ b/suites/libvirt-cim/cimtest/ElementSettingData/03_esd_assoc_with_rasd_errs.py	Sat Jun 07 21:25:29 2008 +0800
@@ -60,7 +60,7 @@
 from XenKvmLib.classes import get_typed_class
 from CimTest.ReturnCodes import PASS, FAIL
 
-sup_types = ['Xen', 'KVM']
+sup_types = ['Xen', 'KVM', 'LXC']
 
 test_dom = "hd_domain1"
 test_mac = "00:11:22:33:44:55"
@@ -82,7 +82,10 @@
 
     status = PASS
     virtxml = vxml.get_class(options.virt)
-    cxml = virtxml(test_dom, mac = test_mac)
+    if options.virt == 'LXC':
+        cxml = virtxml(test_dom)
+    else:
+        cxml = virtxml(test_dom, mac = test_mac)
     ret = cxml.create(options.ip)
     if not ret:
         logger.error("Failed to Create the dom: %s" % test_dom)




More information about the Libvirt-cim mailing list