[Buildbot-commits] buildbot/buildbot/process buildstep.py,1.6,1.7
Brian Warner
warner at users.sourceforge.net
Tue Jul 17 19:48:42 UTC 2007
Update of /cvsroot/buildbot/buildbot/buildbot/process
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22951/buildbot/process
Modified Files:
buildstep.py
Log Message:
[project @ add BuildStep.getLog]
Original author: warner at lothar.com
Date: 2007-07-17 19:48:16+00:00
Index: buildstep.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/process/buildstep.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- buildstep.py 18 Jun 2007 02:52:49 -0000 1.6
+++ buildstep.py 17 Jul 2007 19:48:40 -0000 1.7
@@ -837,10 +837,11 @@
self._connectPendingLogObservers()
return loog
- # TODO: add a getLog() ? At the moment all logs have to be retrieved from
- # the RemoteCommand that created them, but for status summarizers it
- # would be more convenient to get them from the BuildStep / BSStatus,
- # especially if there are multiple RemoteCommands involved.
+ def getLog(self, name):
+ for l in self.step_status.getLogs():
+ if l.getName() == name:
+ return l
+ raise KeyError("no log named '%s'" % (name,))
def addCompleteLog(self, name, text):
log.msg("addCompleteLog(%s)" % name)
More information about the Commits
mailing list