# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1229981551 28800
# Node ID c441f4b31da66c462a6aaa8c48381e2b4893dcc1
# Parent 183d64732e06a27dde83ba6df1966c3d69c371e1
[TEST] Add LXC support to a few misc tests.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 183d64732e06 -r c441f4b31da6
suites/libvirt-cim/cimtest/HostedDependency/03_enabledstate.py
--- a/suites/libvirt-cim/cimtest/HostedDependency/03_enabledstate.py Mon Dec 22 13:32:17
2008 -0800
+++ b/suites/libvirt-cim/cimtest/HostedDependency/03_enabledstate.py Mon Dec 22 13:32:31
2008 -0800
@@ -44,14 +44,16 @@
CIM_ERROR_GETINSTANCE
from XenKvmLib.const import do_main
from XenKvmLib.enumclass import CIM_Instance
-from CimTest.ReturnCodes import PASS, FAIL
+from CimTest.ReturnCodes import PASS, FAIL, XFAIL_RC
-sup_types = ['Xen', 'KVM', 'XenFV']
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
TIME = "00000000000000.000000:000"
test_dom = "hd_domain1"
test_mac = "00:11:22:33:44:55"
+bug_libvirt = "00011"
+
def create_list(instance):
new_list = {
'CreationClassName': instance.CreationClassName,
@@ -125,6 +127,10 @@
logger.error("Failed to suspend the dom: %s" % test_dom)
cxml.destroy(server)
cxml.undefine(server)
+
+ if virt == 'LXC':
+ return XFAIL_RC(bug_libvirt)
+
return FAIL
status, host_inst = get_host_info(server, virt)
diff -r 183d64732e06 -r c441f4b31da6
suites/libvirt-cim/cimtest/Profile/02_profile_to_elec.py
--- a/suites/libvirt-cim/cimtest/Profile/02_profile_to_elec.py Mon Dec 22 13:32:17 2008
-0800
+++ b/suites/libvirt-cim/cimtest/Profile/02_profile_to_elec.py Mon Dec 22 13:32:31 2008
-0800
@@ -48,7 +48,7 @@
from CimTest.ReturnCodes import PASS, FAIL
from XenKvmLib.classes import get_typed_class
-sup_types = ['Xen', 'XenFV', 'KVM']
+sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
test_dom = "domguest"
diff -r 183d64732e06 -r c441f4b31da6
suites/libvirt-cim/cimtest/SettingsDefineCapabilities/05_reverse_vsmcap.py
--- a/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/05_reverse_vsmcap.py Mon Dec
22 13:32:17 2008 -0800
+++ b/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/05_reverse_vsmcap.py Mon Dec
22 13:32:31 2008 -0800
@@ -41,11 +41,13 @@
from XenKvmLib import assoc
from CimTest.Globals import CIM_ERROR_ASSOCIATORS, logger
from CimTest.ReturnCodes import PASS, FAIL
-from XenKvmLib.const import do_main, platform_sup
+from XenKvmLib.const import do_main
from XenKvmLib.classes import get_typed_class
from XenKvmLib.common_util import print_field_error
-@do_main(platform_sup)
+sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
+
+@do_main(sup_types)
def main():
options = main.options
status = PASS