# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1212117460 -28800
# Node ID 729be78aaf6da7cfab0275c5eb4d3981d2e5ea57
# Parent 3ac66cf562f082546883c1de0d748471b557cd39
[TEST] Update HostedDependency tc for LXC support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 3ac66cf562f0 -r 729be78aaf6d
suites/libvirt-cim/cimtest/HostedDependency/01_forward.py
--- a/suites/libvirt-cim/cimtest/HostedDependency/01_forward.py Fri May 30 00:24:45 2008
+0800
+++ b/suites/libvirt-cim/cimtest/HostedDependency/01_forward.py Fri May 30 11:17:40 2008
+0800
@@ -55,7 +55,7 @@
from CimTest.Globals import do_main
from CimTest.ReturnCodes import PASS, FAIL
-sup_types = ['Xen', 'KVM']
+sup_types = ['Xen', 'KVM', 'LXC']
test_dom = "hd_domain"
test_mac = "00:11:22:33:44:55"
@@ -66,7 +66,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.define(options.ip)
if not ret:
Globals.logger.error("Failed to Create the dom: %s", test_dom)
diff -r 3ac66cf562f0 -r 729be78aaf6d
suites/libvirt-cim/cimtest/HostedDependency/02_reverse.py
--- a/suites/libvirt-cim/cimtest/HostedDependency/02_reverse.py Fri May 30 00:24:45 2008
+0800
+++ b/suites/libvirt-cim/cimtest/HostedDependency/02_reverse.py Fri May 30 11:17:40 2008
+0800
@@ -50,7 +50,7 @@
from CimTest.Globals import logger, do_main
from CimTest.ReturnCodes import PASS, FAIL
-sup_types = ['Xen', 'KVM']
+sup_types = ['Xen', 'KVM', 'LXC']
test_dom = "hd_domain"
test_mac = "00:11:22:33:44:55"
@@ -61,7 +61,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:
diff -r 3ac66cf562f0 -r 729be78aaf6d
suites/libvirt-cim/cimtest/HostedDependency/04_reverse_errs.py
--- a/suites/libvirt-cim/cimtest/HostedDependency/04_reverse_errs.py Fri May 30 00:24:45
2008 +0800
+++ b/suites/libvirt-cim/cimtest/HostedDependency/04_reverse_errs.py Fri May 30 11:17:40
2008 +0800
@@ -38,7 +38,7 @@
from XenKvmLib.common_util import get_host_info, try_assoc
from CimTest.ReturnCodes import PASS, FAIL, XFAIL_RC
-sup_types = ['Xen', 'KVM']
+sup_types = ['Xen', 'KVM', 'LXC']
test_dom = "hd_domain1"
test_mac = "00:11:22:33:44:55"
@@ -109,7 +109,10 @@
status = PASS
server = options.ip
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:
Show replies by date