[Libvirt-cim] [PATCH] [TEST] 3# big patch for LXC support
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Wed May 21 19:59:33 UTC 2008
> diff -r b2b2bb6cc8d8 -r 2845b58769cb lib/CimTest/Globals.py
> --- a/lib/CimTest/Globals.py Mon May 19 10:43:33 2008 -0700
> +++ b/lib/CimTest/Globals.py Thu May 22 23:16:30 2008 +0800
> @@ -49,7 +49,7 @@
> CIM_IP = os.getenv("CIM_IP")
> CIM_PORT = "5988"
> NM = "TEST LOG"
> -platform_sup = ["Xen", "KVM", "XenFV"]
> +platform_sup = ["Xen", "KVM", "XenFV", "LXC"]
I mentioned this in the other patch, don't include LXC just yet.
> diff -r b2b2bb6cc8d8 -r 2845b58769cb suites/libvirt-cim/cimtest/ComputerSystem/03_defineVS.py
> --- a/suites/libvirt-cim/cimtest/ComputerSystem/03_defineVS.py Mon May 19 10:43:33 2008 -0700
> +++ b/suites/libvirt-cim/cimtest/ComputerSystem/03_defineVS.py Thu May 22 23:16:30 2008 +0800
> @@ -27,15 +27,17 @@
> # 26-Sep-2007
>
> import sys
> +import os
> from XenKvmLib import computersystem
> from XenKvmLib import vxml
> from XenKvmLib.classes import get_typed_class
> +from XenKvmLib.const import LXC_init_path
> from VirtLib import utils
> from CimTest import Globals
> from CimTest.Globals import do_main
> from CimTest.ReturnCodes import PASS, FAIL
>
> -sup_types = ['Xen', 'KVM', 'XenFV']
> +sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
> test_dom = "domU1"
>
> @do_main(sup_types)
> @@ -76,6 +78,7 @@
> Globals.logger.error("Error: property values are not set for VS %s" % test_dom)
>
> cxml.undefine(options.ip)
> + os.remove(LXC_init_path)
Have this be part of the undefine / destroy step. That way, you won't
need to remove the file in each test.
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list