# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1230018436 28800
# Node ID d10ce7132e520efec4bdbbb80e43ac823aef81fb
# Parent d31ce4bbab88ee3029128602fb49a4d54ec88ab4
[TEST] Modifying the 02_np_gi_errors.py of NetworkPort.
Modifying the 02_np_gi_errors.py of NetworkPort to be skipped for LXC when
LXC_netns_support is false.
As of now LXC_netns_support is hardcoded to be false in const.py.
We need to update the tc once we have an appropriate function which verifies the NETNS
support in the kernel.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r d31ce4bbab88 -r d10ce7132e52
suites/libvirt-cim/cimtest/NetworkPort/02_np_gi_errors.py
--- a/suites/libvirt-cim/cimtest/NetworkPort/02_np_gi_errors.py Mon Dec 22 23:03:01 2008
-0800
+++ b/suites/libvirt-cim/cimtest/NetworkPort/02_np_gi_errors.py Mon Dec 22 23:47:16 2008
-0800
@@ -49,7 +49,7 @@
from CimTest.Globals import logger
from XenKvmLib.classes import get_typed_class
from XenKvmLib.vxml import get_class
-from XenKvmLib.const import do_main
+from XenKvmLib.const import do_main, LXC_netns_support
from XenKvmLib.enumclass import GetInstance, CIM_CimtestClass, EnumInstances
sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
@@ -77,7 +77,10 @@
test_dom = "nettest_domain"
test_mac = "00:11:22:33:44:55"
-
+
+ if options.virt =='LXC' and LXC_netns_support is False:
+ return SKIP
+
vsxml = get_class(options.virt)(test_dom, mac=test_mac)
ret = vsxml.cim_define(options.ip)
if ret != 1: