[Buildbot-commits] [SPAM] [Buildbot] #900: console: exceptions everywhere
Buildbot
buildbot-devel at lists.sourceforge.net
Fri Jun 18 13:35:59 UTC 2010
#900: console: exceptions everywhere
-------------------+--------------------------------------------------------
Reporter: axel | Owner:
Type: defect | Status: new
Priority: major | Milestone: undecided
Version: 0.8.0 | Keywords: console pink exception
-------------------+--------------------------------------------------------
Hi,
for me, all console builds are pink. Debugging showed that results in
getResultsClass() was in fact a list. I changed console.py to
--- status/web/console.py.org 2010-05-24 17:31:03.000000000 +0200
+++ status/web/console.py 2010-06-18 12:15:11.328747895 +0200
@@ -19,9 +19,15 @@
if results is None:
return "notstarted"
+ if type(results) in (tuple, list):
+ results = max(results)
+
if results == builder.SUCCESS:
return "success"
and now it works.
While at it, I added "warnings" as a legal result:
--- status/web/console.py.org 2010-05-24 17:31:03.000000000 +0200
+++ status/web/console.py 2010-06-18 12:15:11.328747895 +0200
@@ -19,9 +19,15 @@
if results is None:
return "notstarted"
+ if type(results) in (tuple, list):
+ results = max(results)
+
if results == builder.SUCCESS:
return "success"
+ if results == builder.WARNINGS:
+ return "warnings"
+
if results == builder.FAILURE:
if not prevResults:
# This is the bottom box. We don't know if the previous one
failed
Cheers, Axel.
--
Ticket URL: <http://buildbot.net/trac/ticket/900>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list