working refactor; no enhancements

This commit is contained in:
2010-05-11 17:53:10 -07:00
parent 813a4fd3d1
commit 167e221e31
2 changed files with 70 additions and 31 deletions

View File

@@ -477,6 +477,7 @@ while curtime < endtime and chunk < totalchunks:
elif status == BuildStatus.TestFailed :
logging.info("Checking build log for '%s' at %d (%s)" % (name, starttime, ctime(starttime)))
try:
failures = []
# Grab the build log.
log, headers = urllib.urlretrieve("http://tinderbox.mozilla.org/%s/%s" % (options.tree, build['logfile']))
gz = GzipFile(log) # I need a list of lines from the build log
@@ -486,6 +487,7 @@ while curtime < endtime and chunk < totalchunks:
parser = parsers.get(harness_type, log_parser.LogParser)()
failures = parser.parse(gz)
# add the failures to the database
for failure in failures:
# convenience variables; can probably delete