diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2024-07-02 18:02:09 +0200 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2024-07-10 01:16:38 +0000 |
commit | 7ad2c8b3e0f8b157f570ce5958bde3220d62b1ac (patch) | |
tree | 597d8274c5fbf868aa3bf13a638c88c8161d6b35 /test/asf/asfframework.py | |
parent | 80e9503819a64f8360bb9b055660089ba67957f6 (diff) |
tests: disable failing tests on Ubuntu 22.04
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 <ayourtch@gmail.com>
(cherry picked from commit 9987d470a6a502dd64266204cb006f30d7245cdd)
Diffstat (limited to 'test/asf/asfframework.py')
-rw-r--r-- | test/asf/asfframework.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/asf/asfframework.py b/test/asf/asfframework.py index 24880044cec..4cd4d94ab7b 100644 --- a/test/asf/asfframework.py +++ b/test/asf/asfframework.py @@ -317,6 +317,12 @@ class VppAsfTestCase(CPUInterface, unittest.TestCase): 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""" return cls.test_instance @@ -1361,6 +1367,13 @@ class VppTestResult(unittest.TestResult): 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]" |