diff options
Diffstat (limited to 'scripts/dev/ci/problemmatchers.py')
-rw-r--r-- | scripts/dev/ci/problemmatchers.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/scripts/dev/ci/problemmatchers.py b/scripts/dev/ci/problemmatchers.py index 13f960c31..a10077282 100644 --- a/scripts/dev/ci/problemmatchers.py +++ b/scripts/dev/ci/problemmatchers.py @@ -134,6 +134,38 @@ MATCHERS = { ], }, ], + + "tests": [ + { + # BDD tests / normal Python exceptions + "severity": "error", + "pattern": [ + { + "regexp": r'^E?\s*File "(.*)", line (\d+), in .*$', + "file": 1, + "line": 2, + }, + { + "regexp": r"E?\s*\w+Error: (.*)", + "message": 1, + } + ], + }, + { + # pytest stacktraces + # qutebrowser/utils/utils.py:773: AssertionError + # tests/unit/utils/test_utils.py:887: + "severity": "error", + "pattern": [ + { + "regexp": r'^([^ ]*):(\d+): ?(.*)', + "file": 1, + "line": 2, + "message": 3, + } + ], + }, + ] } @@ -152,6 +184,9 @@ def add_matcher(output_dir, testenv, data): def main(): testenv = sys.argv[1] + if testenv.startswith('py3'): + testenv = 'tests' + if testenv not in MATCHERS: return |