only print unrecognized errors in gate

Change-Id: I9ef432c2104e5cd0e1a760816e055263f7c465c7
This commit is contained in:
Sean Dague
2014-01-30 18:45:20 -05:00
parent 9547f4e89a
commit 7fa2ca39e7

View File

@@ -115,12 +115,16 @@ class RecheckWatch(threading.Thread):
LPCACHEDIR)
def new_error(self, channel, event):
msg = ('%s change: %s failed %s in the %s queue with an unrecognized '
'error' % (event.project,
event.url,
', '.join(event.failed_jobs),
event.queue()))
self.print_msg(channel, msg)
# only on gate fails
queue = event.queue()
if queue == "gate":
msg = ('%s change: %s failed %s in the %s queue with'
' an unrecognized error' %
(event.project,
event.url,
', '.join(event.failed_jobs),
queue))
self.print_msg(channel, msg)
def error_found(self, channel, event):
msg = ('%s change: %s failed %s because of: %s' % (