# This CGI script presents the results of the build_farm build
# Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2010
-# Copyright (C) Matthieu Patou <mat@matws.net> 2010
+# Copyright (C) Matthieu Patou <mat@matws.net> 2010-2012
#
# Based on the original web/build.pl:
#
else:
errorReason = ""
self.indice += 1
+ backlink = ""
if m.group(3) in ("error", "failure"):
self.test_links.append([testName, 'lnk-test-%d' %self.indice])
- return "".join(make_collapsible_html('test', testName, content+errorReason, self.indice, status))
+ backlink = "<p><a href='#shortcut2errors'>back to error list</a>"
+ return "".join(make_collapsible_html('test', testName, content+errorReason+backlink, self.indice, status))
def _format_test(self, m):
self.indice += 1
buf = "%s\n<A href='#%s'>%s</A>" % (buf, tst[1], tst[0])
if not buf == "":
- divhtml = "".join(make_collapsible_html('testlinks', 'Shortcut to failed tests', buf, self.indice, ""))
+ divhtml = "".join(make_collapsible_html('testlinks', 'Shortcut to failed tests', "<a name='shortcut2errors'></a>%s" % buf, self.indice, ""))+"\n"
log = re.sub("Running action\s+test", divhtml, log)
return "<pre>%s</pre>" % log