[Buildbot-devel] Marking a build step as failed unless the STDOUT contains a magic string.

Scott Lawrence slawrence at pingtel.com
Tue Jan 22 16:10:45 UTC 2008


> On Jan 22, 2008, at 4:51 PM, Matisse Enzer wrote:
> 
> >
> > I have two factory steps:
> >
> >    f1.addStep(shell.ShellCommand, command=['make', 'smoke'])
> >    f1.addStep(shell.ShellCommand, command=['make', 'languages-smoke'])
> >
> > and I need to mark each step as a failure unless the stdout contains a
> > line
> > exactly matching:
> >       ^All tests successful.$
> >
> > Is there a "best practice" for doing this sort of thing?

It's not very robust to look for magic strings.  It's much better to
just make sure that your makefile is written so that 'make' will return
a failure status unless all tests pass.

-- 
Scott Lawrence  tel:+1.781.229.0533;ext=162 or sip:slawrence at pingtel.com
  sipXecs project coordinator - SIPfoundry http://www.sipfoundry.org/sipXecs
  CTO, Voice Solutions   - Bluesocket Inc. http://www.bluesocket.com/ 
                                           http://www.pingtel.com/





More information about the devel mailing list