Chromium Code Reviews| Index: scripts/master/try_job_decoration.py |
| =================================================================== |
| --- scripts/master/try_job_decoration.py (revision 0) |
| +++ scripts/master/try_job_decoration.py (revision 0) |
| @@ -0,0 +1,22 @@ |
| +# Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +from buildbot.process.properties import Properties |
| + |
| + |
| +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
|
| + """ |
| + Returns properties extended by the meaning of decoration. |
| + """ |
| + |
| + props = Properties() |
| + props.updateFromProperties(properties) |
| + for decoration in decorations.split(':'): |
| + if decoration == 'compile': |
| + testfilter = props.getProperty('testfilter') or 'None' |
| + props.setProperty('testfilter', testfilter, 'Decoration') |
| + |
| + #TODO(petermayo) Define a DSL of useful modifications to individual |
| + # bots of a test run. |
| + return props |
| Property changes on: scripts/master/try_job_decoration.py |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |