Hi.
I would consider it handy to run a command and make an output analysis
in LineConsumerLogObserver. Doing that I would like to fail a build step,
is it somehow possible?
Thanks,
Martin
___
users mailing list
users@buildbot.net
https://lists.buildbot.
Hi,
Something like bellow should work.
BR,
cipibad
class MyShellCommand(shell.ShellCommand):
def logConsumer(self):
while True:
stream, line = yield
if line.find('TEST_FAILURE_INDICATOR') != -1:
self.testFailed = True
return
Sorry,
Full code bellow:
class MyShellCommand(shell.ShellCommand):
def __init__(self, **kwargs):
shell.ShellCommand.__init__(self, **kwargs)
self.addLogObserver('stdio',
logobserver.LineConsumerLogObserver(self.logConsumer))
self.testFailed = False
def logConsumer