[Buildbot-commits] buildbot/buildbot/status builder.py, 1.110, 1.111
Brian Warner
warner at users.sourceforge.net
Wed Jun 25 23:52:43 UTC 2008
Update of /cvsroot/buildbot/buildbot/buildbot/status
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26409/buildbot/status
Modified Files:
builder.py
Log Message:
[project @ #278:enhancedBuildSlavesPage-v2.diff]
short patch by Ben Hearsum to make the /buildslaves WebStatus? page
a little more useful. It does do things: 1) bolds the 'slave is NOT
connected' line to make it more visible 2) shows whether each slave
is busy (building) or not
Original author: dustin at v.igoro.us
Date: 2008-06-01 17:34:09+00:00
Index: builder.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/builder.py,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -d -r1.110 -r1.111
--- builder.py 25 Jun 2008 23:52:35 -0000 1.110
+++ builder.py 25 Jun 2008 23:52:41 -0000 1.111
@@ -1743,6 +1743,7 @@
def __init__(self, name):
self.name = name
self._lastMessageReceived = 0
+ self.runningBuilds = []
def getName(self):
return self.name
@@ -1754,6 +1755,8 @@
return self.connected
def lastMessageReceived(self):
return self._lastMessageReceived
+ def getRunningBuilds(self):
+ return self.runningBuilds
def setAdmin(self, admin):
self.admin = admin
@@ -1764,6 +1767,11 @@
def setLastMessageReceived(self, when):
self._lastMessageReceived = when
+ def buildStarted(self, build):
+ self.runningBuilds.append(build)
+ def buildFinished(self, build):
+ self.runningBuilds.remove(build)
+
class Status:
"""
I represent the status of the buildmaster.
More information about the Commits
mailing list