Skip to content

Commit

Permalink
tests: disable failing tests on Ubuntu 22.04
Browse files Browse the repository at this point in the history
Also rework the logic so the skipping of marked Ubuntu 22.04 occurs at framework level

Leave debian11 special cases as-is.

Type: fix
Change-Id: I481eb32cd1a0860935482e9f930ced409da653c9
Signed-off-by: Andrew Yourtchenko <[email protected]>
(cherry picked from commit 9987d47)
  • Loading branch information
ayourtch authored and dwallacelf committed Jul 10, 2024
1 parent 80e9503 commit 7ad2c8b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 10 deletions.
13 changes: 13 additions & 0 deletions test/asf/asfframework.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,12 @@ def skip_fixme_asan(cls):
if "DVPP_ENABLE_SANITIZE_ADDR=ON" in vpp_extra_cmake_args:
cls = unittest.skip("Skipping @tag_fixme_asan tests")(cls)

@classmethod
def skip_fixme_ubuntu2204(cls):
"""if @tag_fixme_ubuntu2204 & is Ubuntu22.04 - mark for skip"""
if cls.has_tag(TestCaseTag.FIXME_UBUNTU2204) and is_distro_ubuntu2204 == True:
cls = unittest.skip("Skipping @tag_fixme_ubuntu2204 tests")(cls)

@classmethod
def instance(cls):
"""Return the instance of this testcase"""
Expand Down Expand Up @@ -1361,6 +1367,13 @@ def print_header(test):
test_title = colorize(f"FIXME with ASAN: {test_title}", RED)
test.skip_fixme_asan()

if (
test.has_tag(TestCaseTag.FIXME_UBUNTU2204)
and is_distro_ubuntu2204 == True
):
test_title = colorize(f"FIXME with Ubuntu 22.04: {test_title}", RED)
test.skip_fixme_ubuntu2204()

if hasattr(test, "vpp_worker_count"):
if test.vpp_worker_count == 0:
test_title += " [main thread only]"
Expand Down
4 changes: 1 addition & 3 deletions test/test_flowprobe.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ class VppTestCase) before running the test case, set test case related
variables and configure VPP.
"""
super(MethodHolder, cls).setUpClass()
if (is_distro_ubuntu2204 == True or is_distro_debian11 == True) and not hasattr(
cls, "vpp"
):
if (is_distro_debian11 == True) and not hasattr(cls, "vpp"):
return
try:
# Create pg interfaces
Expand Down
10 changes: 7 additions & 3 deletions test/test_ikev2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1872,6 +1872,7 @@ def config_tc(self):


@tag_fixme_vpp_workers
@tag_fixme_ubuntu2204
class TestInitiatorNATT(TemplateInitiator, Ikev2Params):
"""test ikev2 initiator - NAT traversal (intitiator behind NAT)"""

Expand Down Expand Up @@ -1904,6 +1905,7 @@ def config_tc(self):


@tag_fixme_vpp_workers
@tag_fixme_ubuntu2204
class TestInitiatorPsk(TemplateInitiator, Ikev2Params):
"""test ikev2 initiator - pre shared key auth"""

Expand Down Expand Up @@ -1935,6 +1937,7 @@ def config_tc(self):


@tag_fixme_vpp_workers
@tag_fixme_ubuntu2204
class TestInitiatorRequestWindowSize(TestInitiatorPsk):
"""test initiator - request window size (1)"""

Expand Down Expand Up @@ -1983,6 +1986,7 @@ def test_initiator(self):


@tag_fixme_vpp_workers
@tag_fixme_ubuntu2204
class TestInitiatorRekey(TestInitiatorPsk):
"""test ikev2 initiator - rekey"""

Expand Down Expand Up @@ -2027,6 +2031,7 @@ def test_initiator(self):


@tag_fixme_vpp_workers
@tag_fixme_ubuntu2204
class TestInitiatorDelSAFromResponder(TemplateInitiator, Ikev2Params):
"""test ikev2 initiator - delete IKE SA from responder"""

Expand Down Expand Up @@ -2197,9 +2202,7 @@ def setUpClass(cls):

globals()["ikev2"] = _ikev2
super(IkePeer, cls).setUpClass()
if (is_distro_ubuntu2204 == True or is_distro_debian11 == True) and not hasattr(
cls, "vpp"
):
if (is_distro_debian11 == True) and not hasattr(cls, "vpp"):
return
cls.create_pg_interfaces(range(1))
cls.vapi.cli("ip table add 1")
Expand Down Expand Up @@ -2310,6 +2313,7 @@ def config_tc(self):


@tag_fixme_vpp_workers
@tag_fixme_ubuntu2204
class TestInitiatorKeepaliveMsg(TestInitiatorPsk):
"""
Test for keep alive messages
Expand Down
2 changes: 0 additions & 2 deletions test/test_nat44_ed.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ def nat_add_static_mapping(
@classmethod
def setUpClass(cls):
super().setUpClass()
if is_distro_ubuntu2204 == True and not hasattr(cls, "vpp"):
return

cls.create_pg_interfaces(range(12))
cls.interfaces = list(cls.pg_interfaces[:4])
Expand Down
2 changes: 0 additions & 2 deletions test/test_nat64.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ def config_flags(self):
def setUpClass(cls):
super(TestNAT64, cls).setUpClass()

if is_distro_ubuntu2204 == True and not hasattr(cls, "vpp"):
return
cls.tcp_port_in = 6303
cls.tcp_port_out = 6303
cls.udp_port_in = 6304
Expand Down

0 comments on commit 7ad2c8b

Please sign in to comment.