+1 from me.
Best,
Regards
Daisy (运国莲)
VSM Team, China Systems & Technology Labs (CSTL)
E-mail: yunguol(a)cn.ibm.com
TEL: (86)-21-60922403
Building 10, 399 Ke Yuan Rd, Pudong Shanghai, 201203
Kaitlin Rupert <kaitlin(a)linux.vnet.ibm.com>
Sent by: libvirt-cim-bounces(a)redhat.com
2008-12-23 05:32
Please respond to
List for discussion and development of libvirt CIM
<libvirt-cim(a)redhat.com>
To
libvirt-cim(a)redhat.com
cc
Subject
[Libvirt-cim] [PATCH] [TEST] Add LXC support to a few CS tests
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1229981537 28800
# Node ID 183d64732e06a27dde83ba6df1966c3d69c371e1
# Parent 3c36bba0147a505e769e9bb330e661859a723b82
[TEST] Add LXC support to a few CS tests
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 3c36bba0147a -r 183d64732e06
suites/libvirt-cim/cimtest/ComputerSystem/06_paused_active_suspend.py
---
a/suites/libvirt-cim/cimtest/ComputerSystem/06_paused_active_suspend.py
Mon Dec 22 12:34:33 2008 -0800
+++
b/suites/libvirt-cim/cimtest/ComputerSystem/06_paused_active_suspend.py
Mon Dec 22 13:32:17 2008 -0800
@@ -48,14 +48,15 @@
from XenKvmLib.const import do_main
from XenKvmLib.common_util import call_request_state_change, \
poll_for_state_change
-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']
test_dom = "DomST1"
mem = 128 # MB
START_STATE = 2
FINAL_STATE = 9
TIME = "00000000000000.000000:000"
+bug_libvirt = "00011"
@do_main(sup_types)
def main():
@@ -94,6 +95,8 @@
logger.error("Unable to suspend dom '%s' using
RequestedStateChange()",
test_dom)
cxml.destroy(server)
+ if virt == 'LXC':
+ return XFAIL_RC(bug_libvirt)
return status
#Polling for the value of EnabledState to be set to 9.
diff -r 3c36bba0147a -r 183d64732e06
suites/libvirt-cim/cimtest/ComputerSystem/23_suspend_suspend.py
--- a/suites/libvirt-cim/cimtest/ComputerSystem/23_suspend_suspend.py Mon
Dec 22 12:34:33 2008 -0800
+++ b/suites/libvirt-cim/cimtest/ComputerSystem/23_suspend_suspend.py Mon
Dec 22 13:32:17 2008 -0800
@@ -43,14 +43,14 @@
from VirtLib import utils
from CimTest.Globals import logger
from XenKvmLib.const import do_main
-from CimTest.ReturnCodes import PASS, FAIL
+from CimTest.ReturnCodes import PASS, FAIL, XFAIL_RC
from XenKvmLib.test_doms import destroy_and_undefine_domain
from XenKvmLib.common_util import create_using_definesystem, \
call_request_state_change, \
try_request_state_change, \
poll_for_state_change
-sup_types = ['Xen', 'XenFV', 'KVM']
+sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
ACTIVE_STATE = 2
SUSPND_STATE = 9
@@ -60,6 +60,8 @@
err_no = pywbem.CIM_ERR_FAILED
err_desc = "Domain not running"
+bug_libvirt = "00011"
+
@do_main(sup_types)
def main():
options = main.options
@@ -103,6 +105,8 @@
if status != PASS:
destroy_and_undefine_domain(default_dom, server, virt)
+ if virt == 'LXC':
+ return XFAIL_RC(bug_libvirt)
return status
# try to suspend already suspended VS
diff -r 3c36bba0147a -r 183d64732e06
suites/libvirt-cim/cimtest/ComputerSystem/32_start_reboot.py
--- a/suites/libvirt-cim/cimtest/ComputerSystem/32_start_reboot.py Mon
Dec 22 12:34:33 2008 -0800
+++ b/suites/libvirt-cim/cimtest/ComputerSystem/32_start_reboot.py Mon
Dec 22 13:32:17 2008 -0800
@@ -49,7 +49,7 @@
call_request_state_change, \
poll_for_state_change
-sup_types = ['Xen', 'XenFV', 'KVM']
+sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
bug_libvirt = "00005"
ACTIVE_STATE = 2
diff -r 3c36bba0147a -r 183d64732e06
suites/libvirt-cim/cimtest/ComputerSystem/33_suspend_reboot.py
--- a/suites/libvirt-cim/cimtest/ComputerSystem/33_suspend_reboot.py Mon
Dec 22 12:34:33 2008 -0800
+++ b/suites/libvirt-cim/cimtest/ComputerSystem/33_suspend_reboot.py Mon
Dec 22 13:32:17 2008 -0800
@@ -52,7 +52,7 @@
poll_for_state_change, \
try_request_state_change
-sup_types = ['Xen', 'XenFV', 'KVM']
+sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
bug_libvirt = "00005"
ACTIVE_STATE = 2
diff -r 3c36bba0147a -r 183d64732e06
suites/libvirt-cim/cimtest/ComputerSystem/35_start_reset.py
--- a/suites/libvirt-cim/cimtest/ComputerSystem/35_start_reset.py Mon Dec
22 12:34:33 2008 -0800
+++ b/suites/libvirt-cim/cimtest/ComputerSystem/35_start_reset.py Mon Dec
22 13:32:17 2008 -0800
@@ -49,7 +49,7 @@
call_request_state_change, \
poll_for_state_change
-sup_types = ['Xen', 'XenFV', 'KVM']
+sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
ACTIVE_STATE = 2
RESET_STATE = 11
diff -r 3c36bba0147a -r 183d64732e06
suites/libvirt-cim/cimtest/ComputerSystem/40_RSC_start.py
--- a/suites/libvirt-cim/cimtest/ComputerSystem/40_RSC_start.py Mon Dec 22
12:34:33 2008 -0800
+++ b/suites/libvirt-cim/cimtest/ComputerSystem/40_RSC_start.py Mon Dec 22
13:32:17 2008 -0800
@@ -42,7 +42,7 @@
from XenKvmLib.const import do_main
from CimTest.ReturnCodes import PASS, FAIL
-sup_types = ['Xen', 'KVM', 'XenFV']
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
default_dom = 'cs_test_domain'
REQUESTED_STATE = 2
_______________________________________________
Libvirt-cim mailing list
Libvirt-cim(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-cim