Skip to content

Commit

Permalink
gubernator: add more patterns to match
Browse files Browse the repository at this point in the history
Signed-off-by: Michail Kargakis <[email protected]>
  • Loading branch information
0xmichalis committed Sep 5, 2017
1 parent 2cf31fe commit 3ad5403
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion gubernator/regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ def wordRE(word):
# HACK: match ANSI colored lines by allowing preceding "m",
# as in"\x1b[0;31mFAILED\x1b[0m"

default_words = ["build timed out", "error", "fail", "failed", "fatal", "undefined"]
default_words = [
"build timed out",
"error",
"fail",
"failed",
"fatal",
"undefined",
"panic:",
]

error_re = re.compile(
r'(?:\b|(?<=m))(%s)\b' % '|'.join(default_words), re.IGNORECASE)
Expand Down

0 comments on commit 3ad5403

Please sign in to comment.