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

Daniel Svensson dsvensson at gmail.com
Tue Jan 22 16:02:33 UTC 2008

On Jan 22, 2008 4:51 PM, Matisse Enzer <matisse at matisse.net> 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?

In my setup ShellCommand is subclassed to a testclass, that overrides
the commandComplete method to grep for result strings, and then
evaluateCommand returns the success status, and perhaps getText2 could
say how many tests failed etc.

Daniel Svensson

More information about the devel mailing list