[Buildbot-devel] Multiple factories for one Builder

Dustin J. Mitchell dustin at zmanda.com
Wed May 21 16:23:24 UTC 2008


On Wed, May 21, 2008 at 12:03 PM, Ben Hearsum <bhearsum at mozilla.com> wrote:
> I'm just starting to write factories for some of our processes. To
> help avoid duplication I was hoping to be able to chain factories
> together. For example, I'd like to have something like..

My solution to this has been to put sequences of steps into variables,
or make functions to create them, and then just include those
sequences in all of the factory objects I want to create.  Put another
way, I use the fact that the config file is Python to avoid repeating
myself, while still providing buildbot with what it expects.

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com




More information about the devel mailing list