Mercurial > hg > autobot
diff autobot/template/master/master.cfg @ 189:cb9ad0b04140
preliminary passing of platform information from slaves; not yet tested
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 02 Feb 2011 09:11:28 -0800 |
parents | 700693fad00a |
children | ec60fe53c36c |
line wrap: on
line diff
--- a/autobot/template/master/master.cfg Tue Feb 01 21:34:30 2011 -0800 +++ b/autobot/template/master/master.cfg Wed Feb 02 09:11:28 2011 -0800 @@ -23,11 +23,20 @@ # define builder factories from autobot.projects import factories as factory_dict +from autobot.projects import args builders = [] for slave in config.slaves: for factory in config.slaves[slave]['factories']: - f = factory_dict[factory](**config.args.get(factory, {})) + + # get the factory constructor arguments + factory_args = config.args.get(factory, {}).copy() + if 'platform' in args[factory]: + # slave platform information + factory_args['platform'] = config.slaves[slave]['platform'] + + # make a factory + f = factory_dict[factory](**factory_args) # define builder buildername = '%s - %s' % (factory, slave)