[pypy-commit] buildbot default: Don't display "None" in the columns "own tests" and "applevel tests"

arigo noreply at buildbot.pypy.org
Sun Jul 3 08:49:27 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r521:3aa4da94bc4c
Date: 2011-07-03 08:57 +0200
http://bitbucket.org/pypy/buildbot/changeset/3aa4da94bc4c/

Log:	Don't display "None" in the columns "own tests" and "applevel tests"
	for lines that don't even have a revision number, like the
	pypy-c-*-latest-*.

diff --git a/bot2/pypybuildbot/pypylist.py b/bot2/pypybuildbot/pypylist.py
--- a/bot2/pypybuildbot/pypylist.py
+++ b/bot2/pypybuildbot/pypylist.py
@@ -213,15 +213,19 @@
         self._add_result_for_builder(element, app_builder, 'app_', t.rev, rowClass)
 
     def _add_result_for_builder(self, element, builder_name, prefix, rev, rowClass):
-        branch = self._get_branch()
-        summary, category = self._get_summary_and_category(builder_name, branch, rev)
-        if branch == 'trunk':
-            branch = '%3Ctrunk%3E' # <trunk>
-        if category:
-            href = cgi.escape('/summary?category=%s&branch=%s&recentrev=%s' % (category, branch, rev))
-            str_summary = '<a class="summary_link" href="%s">%s</a>' % (href, summary)
+        if rev == -1:
+            summary = None
+            str_summary = ''
         else:
-            str_summary = str(summary)
+            branch = self._get_branch()
+            summary, category = self._get_summary_and_category(builder_name, branch, rev)
+            if branch == 'trunk':
+                branch = '%3Ctrunk%3E' # <trunk>
+            if category:
+                href = cgi.escape('/summary?category=%s&branch=%s&recentrev=%s' % (category, branch, rev))
+                str_summary = '<a class="summary_link" href="%s">%s</a>' % (href, summary)
+            else:
+                str_summary = str(summary)
         element[prefix + 'summary'] = str_summary
         element[prefix + 'summary_class'] = self._get_summary_class(summary, rowClass)
 


More information about the pypy-commit mailing list