summaryrefslogtreecommitdiffstats
path: root/test/test_vm_vpp_interfaces.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_vm_vpp_interfaces.py')
-rw-r--r--test/test_vm_vpp_interfaces.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_vm_vpp_interfaces.py b/test/test_vm_vpp_interfaces.py
index f87a48aef37..6866c24d228 100644
--- a/test/test_vm_vpp_interfaces.py
+++ b/test/test_vm_vpp_interfaces.py
@@ -63,6 +63,9 @@ layer3 = test_config["L3"]
def create_test(test_name, test, ip_version, mtu):
"""Create and return a unittest method for a test."""
+ @unittest.skipIf(
+ config.skip_netns_tests, "netns not available or disabled from cli"
+ )
def test_func(self):
self.logger.debug(f"Starting unittest:{test_name}")
self.setUpTestToplogy(test=test, ip_version=ip_version)
@@ -97,6 +100,8 @@ def create_test(test_name, test, ip_version, mtu):
def generate_vpp_interface_tests():
"""Generate unittests for testing vpp interfaces."""
+ if config.skip_netns_tests:
+ print("Skipping netns tests")
for test in tests:
for ip_version in test_config["ip_versions"]:
for mtu in test_config["mtus"]: