Ticket #87: runner.py.diff
| File runner.py.diff, 1.3 kB (added by rochg, 1 year ago) |
|---|
-
/Users/rochg/porting/buildbot-0.7.4/buildbot/scripts/runner.py
old new 611 611 612 612 ["builder", "b", None, 613 613 "Run the trial build on this Builder. Can be used multiple times."], 614 ["customproperties", None, None, 615 "A set of custom properties made available in the build environment, format:prop=value,propb=valueb..."], 614 616 ] 615 617 616 618 optFlags = [ … … 620 622 def __init__(self): 621 623 super(TryOptions, self).__init__() 622 624 self['builders'] = [] 625 self['custom_props'] = {} 623 626 624 627 def opt_builder(self, option): 625 628 self['builders'].append(option) 626 629 630 def opt_customproperties(self, option): 631 # We need to split the value of this option into a dictionary of custom 632 # properties 633 custom_props = {} 634 propertylist = option.split(",") 635 for i in range(0,len(propertylist)): 636 print propertylist[i] 637 splitproperty = propertylist[i].split("=") 638 custom_props[splitproperty[0]] = splitproperty[1] 639 self['custom_props'] = custom_props 640 627 641 def getSynopsis(self): 628 642 return "Usage: buildbot try [options]" 629 643
![[Buildbot Logo]](/trac/chrome/site/header-text-transparent.png)