summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2022-10-04 22:02:49 -0400
committerDave Wallace <dwallacelf@gmail.com>2022-10-07 20:00:33 +0000
commit8a0a9d2600ef4da1da0b884e991a990644658963 (patch)
treec851474b8bdc9e6b4fd9481ae8721d51538f192d /test
parent8d97a5cd1cb74c81ef9795925f141302180084c6 (diff)
tests: disable broken wireguard tests on vpp_debug image
Type: test Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: I3a53d57e42f4c1f5ba0de6d2b181c7f2ad083a3a
Diffstat (limited to 'test')
-rw-r--r--test/framework.py11
-rw-r--r--test/test_wireguard.py3
2 files changed, 13 insertions, 1 deletions
diff --git a/test/framework.py b/test/framework.py
index d130855bb55..2b197326532 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -274,6 +274,8 @@ class TestCaseTag(Enum):
FIXME_UBUNTU2204 = 4
# marks suites broken on Debian-11
FIXME_DEBIAN11 = 5
+ # marks suites broken on debug vpp image
+ FIXME_VPP_DEBUG = 6
def create_tag_decorator(e):
@@ -292,6 +294,7 @@ tag_fixme_vpp_workers = create_tag_decorator(TestCaseTag.FIXME_VPP_WORKERS)
tag_fixme_asan = create_tag_decorator(TestCaseTag.FIXME_ASAN)
tag_fixme_ubuntu2204 = create_tag_decorator(TestCaseTag.FIXME_UBUNTU2204)
tag_fixme_debian11 = create_tag_decorator(TestCaseTag.FIXME_DEBIAN11)
+tag_fixme_vpp_debug = create_tag_decorator(TestCaseTag.FIXME_VPP_DEBUG)
class DummyVpp:
@@ -380,6 +383,10 @@ class VppTestCase(CPUInterface, unittest.TestCase):
cls = unittest.skip("Skipping @tag_fixme_debian11 tests")(cls)
@classmethod
+ def skip_fixme_vpp_debug(cls):
+ cls = unittest.skip("Skipping @tag_fixme_vpp_debug tests")(cls)
+
+ @classmethod
def instance(cls):
"""Return the instance of this testcase"""
return cls.test_instance
@@ -1842,6 +1849,10 @@ class VppTestResult(unittest.TestResult):
test_title = colorize(f"FIXME on Debian-11: {test_title}", RED)
test.skip_fixme_debian11()
+ if "debug" in config.vpp_tag and test.has_tag(TestCaseTag.FIXME_VPP_DEBUG):
+ test_title = colorize(f"FIXME on VPP Debug: {test_title}", RED)
+ test.skip_fixme_vpp_debug()
+
if hasattr(test, "vpp_worker_count"):
if test.vpp_worker_count == 0:
test_title += " [main thread only]"
diff --git a/test/test_wireguard.py b/test/test_wireguard.py
index e9caa8d2454..b12330ac5bb 100644
--- a/test/test_wireguard.py
+++ b/test/test_wireguard.py
@@ -42,7 +42,7 @@ from vpp_pg_interface import is_ipv6_misc
from vpp_ip_route import VppIpRoute, VppRoutePath
from vpp_object import VppObject
from vpp_papi import VppEnum
-from framework import is_distro_ubuntu2204, is_distro_debian11
+from framework import is_distro_ubuntu2204, is_distro_debian11, tag_fixme_vpp_debug
from framework import VppTestCase
from re import compile
import unittest
@@ -2379,6 +2379,7 @@ class TestWg(VppTestCase):
wg0.remove_vpp_config()
+@tag_fixme_vpp_debug
class WireguardHandoffTests(TestWg):
"""Wireguard Tests in multi worker setup"""