parametrized front end

This commit is contained in:
2010-04-15 17:13:29 -07:00
parent ed85c97d07
commit 1460ce948f
9 changed files with 75 additions and 91 deletions

View File

@@ -363,7 +363,7 @@ while curtime < endtime and chunk < totalchunks:
continue
# we only care about unit test boxes
unittest_indices = [tboxdata['build_name_index'][x] for x in tboxdata['build_name_index'] if re.search("test|xpc", x)]
unittest_indices = [tboxdata['build_name_index'][x] for x in tboxdata['build_name_index'] if re.search("test|xpc|check", x)]
# read build table
# 'TestFailed' expected log format is "result | test | optional text".
testfailedRe = re.compile(r"(TEST-UNEXPECTED-.*) \| (.*) \|(.*)")
@@ -406,7 +406,7 @@ while curtime < endtime and chunk < totalchunks:
pass
# Parse log to save 'TestFailed' results.
elif status == BuildStatus.TestFailed or status == BuildStatus.Burning or status == BuildStatus.Burning:
elif status == BuildStatus.TestFailed :
logging.info("Checking build log for '%s' at %d (%s)" % (name, starttime, ctime(starttime)))
try:
# Grab the build log.
@@ -433,14 +433,14 @@ while curtime < endtime and chunk < totalchunks:
logging.error("Unexpected error: %s" % sys.exc_info()[0])
#XXX: handle me?
## Ignore 'Burning' builds: tests may have run nontheless, but it's safer to discard them :-|
#elif status == BuildStatus.Burning:
# continue
#
## Ignore 'Exception' builds: should only be worse than 'Burning'.
## (Don't know much at time of writing, since this feature is not active yet: see bug 476656 and follow-ups.)
#elif status == BuildStatus.Exception:
# continue
# Ignore 'Burning' builds: tests may have run nontheless, but it's safer to discard them :-|
elif status == BuildStatus.Burning:
continue
# Ignore 'Exception' builds: should only be worse than 'Burning'.
# (Don't know much at time of writing, since this feature is not active yet: see bug 476656 and follow-ups.)
elif status == BuildStatus.Exception:
continue
# Save 'Unknown' status failure: this should not happen (unless new statuses are created), but we want to know if it does.
elif status == BuildStatus.Unknown: