From e1705791e6fa7d80d14110cabbc6979d497e9e12 Mon Sep 17 00:00:00 2001 From: Andrew Yourtchenko Date: Wed, 19 Mar 2025 14:11:44 +0000 Subject: tests: allow to define SKIP_TESTS in a similar fashion to TEST This change adds the possibility to specify the tests to skip from the selected set of tests. This allows to construct test sets "everything except foo and bar" that are tedious to make otherwise. Type: improvement Change-Id: I0862031baf22fef926554873a88a068dfc8f0623 Signed-off-by: Andrew Yourtchenko --- test/config.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/config.py') diff --git a/test/config.py b/test/config.py index e939f188c6c..2870c55df05 100644 --- a/test/config.py +++ b/test/config.py @@ -151,6 +151,21 @@ parser.add_argument( "--filter", action="store", metavar="FILTER_EXPRESSION", help=filter_help_string ) +skip_filter_help_string = """\ +expression consists of one or more filters separated by commas (',') +filter consists of 3 string selectors separated by dots ('.') + +The syntax is identical to the expression used to select the tests, +except this one one has the effect to skip the tests that match it. +""" + +parser.add_argument( + "--skip-filter", + action="store", + metavar="SKIP_FILTER_EXPR", + help=skip_filter_help_string, +) + default_retries = 0 parser.add_argument( -- cgit