OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import cgi | 5 import cgi |
6 import re | 6 import re |
7 | 7 |
8 from recipe_engine import recipe_api | 8 from recipe_engine import recipe_api |
9 | 9 |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 _MANIFEST_CMD_RE = re.compile(r'Automatic:\s+Start\s+([^\s]+)\s+([^\s]+)') | 48 _MANIFEST_CMD_RE = re.compile(r'Automatic:\s+Start\s+([^\s]+)\s+([^\s]+)') |
49 _BUILD_ID_RE = re.compile(r'CrOS-Build-Id: (.+)') | 49 _BUILD_ID_RE = re.compile(r'CrOS-Build-Id: (.+)') |
50 | 50 |
51 _cached_config = None | 51 _cached_config = None |
52 | 52 |
53 @property | 53 @property |
54 def chromite_path(self): | 54 def chromite_path(self): |
55 v = self.m.path.c.dynamic_paths.get('chromite') | 55 v = self.m.path.c.dynamic_paths.get('chromite') |
56 if v: | 56 if v: |
57 return v | 57 return v |
58 return self.m.infra_paths['slave_build'].join(self._chromite_subpath) | 58 return self.m.path['slave_build'].join(self._chromite_subpath) |
59 | 59 |
60 def _set_chromite_path(self, path): | 60 def _set_chromite_path(self, path): |
61 self.m.path.c.dynamic_paths['chromite'] = path | 61 self.m.path.c.dynamic_paths['chromite'] = path |
62 | 62 |
63 def get_config_defaults(self): | 63 def get_config_defaults(self): |
64 defaults = { | 64 defaults = { |
65 'CBB_CONFIG': self.m.properties.get('cbb_config'), | 65 'CBB_CONFIG': self.m.properties.get('cbb_config'), |
66 'CBB_BRANCH': self.m.properties.get('cbb_branch'), | 66 'CBB_BRANCH': self.m.properties.get('cbb_branch'), |
67 'CBB_DEBUG': self.m.properties.get('cbb_debug') is not None, | 67 'CBB_DEBUG': self.m.properties.get('cbb_debug') is not None, |
68 'CBB_CLOBBER': 'clobber' in self.m.properties, | 68 'CBB_CLOBBER': 'clobber' in self.m.properties, |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 if self.c.cbb.build_id: | 353 if self.c.cbb.build_id: |
354 cbb_args.extend(['--master-build-id', self.c.cbb.build_id]) | 354 cbb_args.extend(['--master-build-id', self.c.cbb.build_id]) |
355 | 355 |
356 # Add custom args, if there are any. | 356 # Add custom args, if there are any. |
357 cbb_args.extend(args) | 357 cbb_args.extend(args) |
358 | 358 |
359 # Run cbuildbot. | 359 # Run cbuildbot. |
360 return self.cbuildbot(str('cbuildbot [%s]' % (self.c.cbb.config,)), | 360 return self.cbuildbot(str('cbuildbot [%s]' % (self.c.cbb.config,)), |
361 self.c.cbb.config, | 361 self.c.cbb.config, |
362 args=cbb_args, | 362 args=cbb_args, |
363 cwd=self.m.infra_paths['slave_build']) | 363 cwd=self.m.path['slave_build']) |
OLD | NEW |