Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 from buildbot.process.properties import Properties | |
| 6 | |
| 7 | |
| 8 def parse_decoration(properties, decorations): | |
|
M-A Ruel
2011/12/09 21:50:29
I think I'd prefer that in try_job_base.py.
Peter Mayo
2011/12/10 01:08:27
Causes a circular dependency base-> bb7 -> base
an
M-A Ruel
2011/12/12 20:46:58
No because since it's a mixin, you can just call t
| |
| 9 """ | |
| 10 Returns properties extended by the meaning of decoration. | |
| 11 """ | |
| 12 | |
| 13 props = Properties() | |
| 14 props.updateFromProperties(properties) | |
| 15 for decoration in decorations.split(':'): | |
| 16 if decoration == 'compile': | |
| 17 testfilter = props.getProperty('testfilter') or 'None' | |
| 18 props.setProperty('testfilter', testfilter, 'Decoration') | |
| 19 | |
| 20 #TODO(petermayo) Define a DSL of useful modifications to individual | |
| 21 # bots of a test run. | |
| 22 return props | |
| OLD | NEW |