| OLD | NEW |
| 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2014 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 """Rolls recipes.cfg dependencies.""" | 5 """Rolls recipes.cfg dependencies.""" |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'depot_tools/bot_update', | 8 'depot_tools/bot_update', |
| 9 'depot_tools/gclient', | 9 'depot_tools/gclient', |
| 10 'file', | 10 'file', |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 """ | 229 """ |
| 230 recipes_path = get_recipes_path(proj_config) + ['recipes.py'] | 230 recipes_path = get_recipes_path(proj_config) + ['recipes.py'] |
| 231 recipes_py_loc = repo_path.join(*recipes_path) | 231 recipes_py_loc = repo_path.join(*recipes_path) |
| 232 args = [] | 232 args = [] |
| 233 for dep_name, location in deps.items(): | 233 for dep_name, location in deps.items(): |
| 234 args += ['-O', '%s=%s' % (dep_name, location)] | 234 args += ['-O', '%s=%s' % (dep_name, location)] |
| 235 args += ['--package', repo_path.join('infra', 'config', 'recipes.cfg')] | 235 args += ['--package', repo_path.join('infra', 'config', 'recipes.cfg')] |
| 236 | 236 |
| 237 args += ['simulation_test'] | 237 args += ['simulation_test'] |
| 238 | 238 |
| 239 return api.python('%s tests' % proj, recipes_py_loc, args) | 239 return api.python( |
| 240 '%s tests' % proj, recipes_py_loc, args, stdout=api.raw_io.output()) |
| 240 | 241 |
| 241 | 242 |
| 242 def checkout_projects(api, all_projects, url_mapping, | 243 def checkout_projects(api, all_projects, url_mapping, |
| 243 downstream_projects, root_dir, patches): | 244 downstream_projects, root_dir, patches): |
| 244 """Checks out projects listed in all_projects into root_dir, applying patches | 245 """Checks out projects listed in all_projects into root_dir, applying patches |
| 245 | 246 |
| 246 Args: | 247 Args: |
| 247 all_projects: All the projects we care about. | 248 all_projects: All the projects we care about. |
| 248 url_mapping: Project id to url of git repository. | 249 url_mapping: Project id to url of git repository. |
| 249 downstream_projects: The mapping from project to projecst that depend on it. | 250 downstream_projects: The mapping from project to projecst that depend on it. |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 api.properties( | 436 api.properties( |
| 436 rietveld="https://fake.code.review", | 437 rietveld="https://fake.code.review", |
| 437 issue=12345678, | 438 issue=12345678, |
| 438 patchset=1, | 439 patchset=1, |
| 439 patch_project="build", | 440 patch_project="build", |
| 440 ) + | 441 ) + |
| 441 api.step_data("Get build deps", project('build', ['recipe_engine'])) + | 442 api.step_data("Get build deps", project('build', ['recipe_engine'])) + |
| 442 api.step_data("Get recipe_engine deps", project('recipe_engine')) | 443 api.step_data("Get recipe_engine deps", project('recipe_engine')) |
| 443 ) | 444 ) |
| 444 | 445 |
| OLD | NEW |