def __str__(self):
return repr((self.stages, self.other_failures))
+ def setcheckerstage(self, val):
+ self.stages[4] = val
+
+ def getcheckerstage(self):
+ return self.stages[4]
def check_dir_exists(kind, path):
if not os.path.isdir(path):
else:
sstatus = None
- return BuildStatus((cstatus, bstatus, istatus, tstatus, sstatus), other_failures)
+ return BuildStatus([cstatus, bstatus, istatus, tstatus, sstatus], other_failures)
def lcov_extract_percentage(text):
def span_status(st):
if st is None:
return span("status unknown", "?")
+ elif st == "-":
+ return span("status notapplicable", "-")
elif st == 0:
return span("status passed", "ok")
else:
def build_status(myself, tree, host, compiler, rev=None):
build = db.get_build(tree, host, compiler, rev)
- status = html_build_status(build.status())
+ rawstatus = build.status()
+ if not rawstatus.getcheckerstage() and compiler != "checker":
+ rawstatus.setcheckerstage("-")
+ status = html_build_status(rawstatus)
return build_link(myself, tree, host, compiler, rev, status)