diff options
Diffstat (limited to 'infra/bots/recipes/swarm_trigger.py')
-rw-r--r-- | infra/bots/recipes/swarm_trigger.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/infra/bots/recipes/swarm_trigger.py b/infra/bots/recipes/swarm_trigger.py index 2547c79b97..40b5499cd6 100644 --- a/infra/bots/recipes/swarm_trigger.py +++ b/infra/bots/recipes/swarm_trigger.py @@ -142,7 +142,7 @@ def swarm_dimensions(builder_cfg): dimensions['device'] = { # TODO(stephana): Remove this temporary discrepancy between the bot name # and device. When we expand iOS testing names and devices need to match - # again. + # again. 'iPad4': 'iPad5,1', }[builder_cfg['model']] # TODO(borenet): Replace this hack with something better. @@ -217,11 +217,10 @@ def trigger_task(api, task_name, builder, master, slave, buildnumber, } if builder_cfg['is_trybot']: if api.properties.get('patch_storage') == 'gerrit': - properties['patch_storage'] = api.properties['patch_storage'] properties['repository'] = api.properties['repository'] - properties['patch_ref'] = api.properties['patch_ref'] - properties['patch_set'] = api.properties['patch_set'] - properties['patch_issue'] = api.properties['patch_issue'] + for prop in api.properties: + if prop.startswith('patch_'): + properties[prop] = api.properties[prop] else: properties['issue'] = str(api.properties['issue']) properties['patchset'] = str(api.properties['patchset']) |