diff options
author | 2025-03-19 14:11:44 +0000 | |
---|---|---|
committer | 2025-03-20 14:51:26 +0000 | |
commit | e1705791e6fa7d80d14110cabbc6979d497e9e12 (patch) | |
tree | 4c63d746a2d27eb0716e42f99c2eee48f95e6a76 /test/config.py | |
parent | 66b33413ca2c27864edf36ba5ea66cad9fbf900d (diff) |
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 <ayourtch@gmail.com>
Diffstat (limited to 'test/config.py')
-rw-r--r-- | test/config.py | 15 |
1 files changed, 15 insertions, 0 deletions
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( |