diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-07-06 13:23:33 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-07-06 13:23:33 +0200 |
commit | a4864546abc0d34e02659d86d4f94dd7a17f002a (patch) | |
tree | c5ba881f247a96e1050b0c45c3443f4e3ba308c5 | |
parent | 09b588f672071166831e621e86819b24ea6d5544 (diff) | |
download | qutebrowser-a4864546abc0d34e02659d86d4f94dd7a17f002a.tar.gz qutebrowser-a4864546abc0d34e02659d86d4f94dd7a17f002a.zip |
ci: Try to improve pytest problemmatchers
Don't match every single line of a stacktrace.
-rw-r--r-- | scripts/dev/ci/problemmatchers.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/scripts/dev/ci/problemmatchers.py b/scripts/dev/ci/problemmatchers.py index 0f8ce8d1f..5756dd41b 100644 --- a/scripts/dev/ci/problemmatchers.py +++ b/scripts/dev/ci/problemmatchers.py @@ -157,10 +157,21 @@ MATCHERS = { "severity": "error", "pattern": [ { - "regexp": r'^\033\[1m\033\[31m([^\033]*)\033\[0m:(\d+): ?(.*)', + "regexp": r'^\033\[1m\033\[31m([^\033]*)\033\[0m:(\d+): .*', "file": 1, "line": 2, - "message": 3, + } + ], + }, + { + # pytest error lines + # E end2end.fixtures.testprocess.WaitForTimeout: Timed out + # after 15000ms waiting for [...] + "severity": "error", + "pattern": [ + { + "regexp": r'^\033\[1m\033\[31mE\s+([^\033]*)\033\[0m$', + "message": 1, } ], }, |