The branch, master has been updated via d405260 Add an easy way to got back to the error list via 6ff3c9e Update my copyright from 0e79461 Make display of shortcut box nicer
http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit d4052603f2ca2e6f198cf155760a6685166948b4 Author: Matthieu Patou <m...@matws.net> Date: Thu Mar 15 01:01:41 2012 -0700 Add an easy way to got back to the error list commit 6ff3c9e54a5a6ddd94b80194c30a7c72fcf0aff6 Author: Matthieu Patou <m...@matws.net> Date: Thu Mar 15 01:01:15 2012 -0700 Update my copyright ----------------------------------------------------------------------- Summary of changes: buildfarm/web/__init__.py | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/buildfarm/web/__init__.py b/buildfarm/web/__init__.py index 69639dd..b7f0194 100755 --- a/buildfarm/web/__init__.py +++ b/buildfarm/web/__init__.py @@ -2,7 +2,7 @@ # This CGI script presents the results of the build_farm build # Copyright (C) Jelmer Vernooij <jel...@samba.org> 2010 -# Copyright (C) Matthieu Patou <m...@matws.net> 2010 +# Copyright (C) Matthieu Patou <m...@matws.net> 2010-2012 # # Based on the original web/build.pl: # @@ -216,9 +216,11 @@ class LogPrettyPrinter(object): 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 @@ -259,7 +261,7 @@ class LogPrettyPrinter(object): 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, ""))+"\n" + 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 -- build.samba.org