[Buildbot-devel] Should LogObserver example status show in WaterFall?
William Deegan
bill at baddogconsulting.com
Thu Apr 14 22:30:53 UTC 2011
Greetings,
I've implemented a log observer similar to the Framboozle log observer in this page: http://buildbot.net/buildbot/docs/current/Adding-LogObservers.html#Adding-LogObservers
Should I expect the counter to show up in the waterfall?
Or do I need to create a createSumarry() method on my class?
Code below.
Thanks,
Bill
Here's my code:
from buildbot.process.buildstep import LogLineObserver
class gridTestObs(LogLineObserver):
numTests = 0
def outLineReceived(self,line):
# Test :MM JobId:8026 Running
# Test :MM JobId:8026 Completed Status:0
if 'Running' in line:
self.numTests += 1
self.step.setProgress('tests',self.numTests)
class GridTests(ShellCommand):
command = ['GridTests']
def __init__(self,**kwargs):
ShellCommand.__init__(self,**kwargs) # Always upcall
counter = gridTestObs()
self.addLogObserver('stdio',counter)
self.progressMetrics += ('tests',)
factory.addStep(GridTests(description="Run Tests on grid",
command=args,
logfiles=logfiles,
)
)
More information about the devel
mailing list