# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1212125627 -28800
# Node ID f03185d9684f996141b3e151a22a2207dc88251d
# Parent 3ac66cf562f082546883c1de0d748471b557cd39
[TEST] Update HostedResourcePool.01~04 for LXC support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 3ac66cf562f0 -r f03185d9684f
suites/libvirt-cim/cimtest/HostedResourcePool/01_forward.py
--- a/suites/libvirt-cim/cimtest/HostedResourcePool/01_forward.py Fri May 30 00:24:45 2008
+0800
+++ b/suites/libvirt-cim/cimtest/HostedResourcePool/01_forward.py Fri May 30 13:33:47 2008
+0800
@@ -29,10 +29,11 @@
from CimTest import Globals
from CimTest.Globals import logger
from CimTest.ReturnCodes import PASS, FAIL
-from CimTest.Globals import do_main, platform_sup
+from CimTest.Globals import do_main
from XenKvmLib.classes import get_typed_class
-@do_main(platform_sup)
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
+@do_main(sup_types)
def main():
options = main.options
status = FAIL
diff -r 3ac66cf562f0 -r f03185d9684f
suites/libvirt-cim/cimtest/HostedResourcePool/02_reverse.py
--- a/suites/libvirt-cim/cimtest/HostedResourcePool/02_reverse.py Fri May 30 00:24:45 2008
+0800
+++ b/suites/libvirt-cim/cimtest/HostedResourcePool/02_reverse.py Fri May 30 13:33:47 2008
+0800
@@ -28,10 +28,11 @@
from CimTest import Globals
from CimTest.Globals import logger
from CimTest.ReturnCodes import PASS, FAIL
-from CimTest.Globals import do_main, platform_sup
+from CimTest.Globals import do_main
from XenKvmLib.classes import get_typed_class
-@do_main(platform_sup)
+sup_types=['Xen', 'KVM', 'XenFV', 'LXC']
+@do_main(sup_types)
def main():
options = main.options
status = PASS
diff -r 3ac66cf562f0 -r f03185d9684f
suites/libvirt-cim/cimtest/HostedResourcePool/03_forward_errs.py
--- a/suites/libvirt-cim/cimtest/HostedResourcePool/03_forward_errs.py Fri May 30 00:24:45
2008 +0800
+++ b/suites/libvirt-cim/cimtest/HostedResourcePool/03_forward_errs.py Fri May 30 13:33:47
2008 +0800
@@ -29,14 +29,15 @@
from CimTest import Globals
from CimTest.Globals import logger
from CimTest.ReturnCodes import PASS, FAIL
-from CimTest.Globals import do_main, platform_sup
+from CimTest.Globals import do_main
from XenKvmLib.classes import get_typed_class
expr_values = { "rc" : pywbem.CIM_ERR_NOT_FOUND, \
"desc" : "No such instance"
}
-@do_main(platform_sup)
+sup_types=['Xen', 'KVM', 'XenFV', 'LXC']
+@do_main(sup_types)
def main():
options = main.options
status = PASS
diff -r 3ac66cf562f0 -r f03185d9684f
suites/libvirt-cim/cimtest/HostedResourcePool/04_reverse_errs.py
--- a/suites/libvirt-cim/cimtest/HostedResourcePool/04_reverse_errs.py Fri May 30 00:24:45
2008 +0800
+++ b/suites/libvirt-cim/cimtest/HostedResourcePool/04_reverse_errs.py Fri May 30 13:33:47
2008 +0800
@@ -28,9 +28,10 @@
from CimTest import Globals
from CimTest.Globals import logger
from CimTest.ReturnCodes import PASS
-from CimTest.Globals import do_main, platform_sup
+from CimTest.Globals import do_main
from XenKvmLib.classes import get_typed_class
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
expr_values = {
"Invalid_InstanceID_KeyName" : {
"rc" :
pywbem.CIM_ERR_FAILED, \
@@ -42,7 +43,7 @@
}
}
-@do_main(platform_sup)
+@do_main(sup_types)
def main():
options = main.options
status = PASS
Show replies by date