Bug 990616 - Treat warnings containing SyntaxError as warnings; r=aki
authorMike Shal <mshal@mozilla.com>
Tue, 01 Apr 2014 18:56:39 -0400
changeset 2608 2e43ed4bea7ee6a50a3f94d34ed417f2122f57bc
parent 2607 079154e919768c38c0989cceb2e7a8836bcd75f2
child 2609 b9f300dff3bf6e86e24684772989e8ccd010e961
push id1915
push usermshal@mozilla.com
push dateTue, 01 Apr 2014 23:04:33 +0000
reviewersaki
bugs990616
Bug 990616 - Treat warnings containing SyntaxError as warnings; r=aki
mozharness/base/errors.py
--- a/mozharness/base/errors.py
+++ b/mozharness/base/errors.py
@@ -109,16 +109,17 @@ GitErrorList = BaseErrorList + [
     {'substr': r'''fatal: sha1 file '<stdout>' write error: Broken pipe''', 'level': ERROR},
     {'substr': r'''error: failed to push some refs to ''', 'level': ERROR},
     {'substr': r'''remote: error: denying non-fast-forward ''', 'level': ERROR},
     {'substr': r'''! [remote rejected] ''', 'level': ERROR},
     {'regex': re.compile(r'''remote:.*No such file or directory'''), 'level': ERROR},
 ]
 
 PythonErrorList = BaseErrorList + [
+    {'regex': re.compile(r'''Warning:.*Error: '''), 'level': WARNING},
     {'substr': r'''Traceback (most recent call last)''', 'level': ERROR},
     {'substr': r'''SyntaxError: ''', 'level': ERROR},
     {'substr': r'''TypeError: ''', 'level': ERROR},
     {'substr': r'''NameError: ''', 'level': ERROR},
     {'substr': r'''ZeroDivisionError: ''', 'level': ERROR},
     {'regex': re.compile(r'''raise \w*Exception: '''), 'level': CRITICAL},
     {'regex': re.compile(r'''raise \w*Error: '''), 'level': CRITICAL},
 ]