| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 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 DEPS = [ | 5 DEPS = [ |
| 6 'depot_tools/bot_update', | 6 'depot_tools/bot_update', |
| 7 'depot_tools/gclient', | 7 'depot_tools/gclient', |
| 8 'depot_tools/git', | 8 'depot_tools/git', |
| 9 'recipe_engine/path', | 9 'recipe_engine/path', |
| 10 'recipe_engine/platform', | 10 'recipe_engine/platform', |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 stdout=api.raw_io.output()) | 42 stdout=api.raw_io.output()) |
| 43 files = result.stdout.splitlines() | 43 files = result.stdout.splitlines() |
| 44 result.presentation.logs['change list'] = files | 44 result.presentation.logs['change list'] = files |
| 45 | 45 |
| 46 with api.step.defer_results(): | 46 with api.step.defer_results(): |
| 47 # Rietveld tests. | 47 # Rietveld tests. |
| 48 deps_mod = 'DEPS' in files | 48 deps_mod = 'DEPS' in files |
| 49 | 49 |
| 50 api.python('python tests', 'test.py', ['test'], cwd=api.path['checkout']) | 50 api.python('python tests', 'test.py', ['test'], cwd=api.path['checkout']) |
| 51 | 51 |
| 52 api.python( |
| 53 'recipe tests', api.path['checkout'].join('recipes', 'recipes.py'), |
| 54 ['simulation_test', 'test']) |
| 55 api.python( |
| 56 'recipe lint', api.path['checkout'].join('recipes', 'recipes.py'), |
| 57 ['lint']) |
| 58 |
| 52 # if any(f.startswith('infra/glyco/') for f in files): | 59 # if any(f.startswith('infra/glyco/') for f in files): |
| 53 # api.python( | 60 # api.python( |
| 54 # 'glyco tests', | 61 # 'glyco tests', |
| 55 # api.path['checkout'].join('glyco', 'tests', 'run_all_tests.py'), | 62 # api.path['checkout'].join('glyco', 'tests', 'run_all_tests.py'), |
| 56 # [], cwd=api.path['checkout']) | 63 # [], cwd=api.path['checkout']) |
| 57 | 64 |
| 58 # Ensure go is bootstrapped as a separate step. | 65 # Ensure go is bootstrapped as a separate step. |
| 59 api.python('go bootstrap', api.path['checkout'].join('go', 'env.py')) | 66 api.python('go bootstrap', api.path['checkout'].join('go', 'env.py')) |
| 60 | 67 |
| 61 # Note: env.py knows how to expand 'python' into sys.executable. | 68 # Note: env.py knows how to expand 'python' into sys.executable. |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 ) | 175 ) |
| 169 | 176 |
| 170 yield ( | 177 yield ( |
| 171 api.test('only_DEPS') + | 178 api.test('only_DEPS') + |
| 172 api.properties.tryserver( | 179 api.properties.tryserver( |
| 173 mastername='tryserver.chromium.linux', | 180 mastername='tryserver.chromium.linux', |
| 174 buildername='infra_tester', | 181 buildername='infra_tester', |
| 175 patch_project='infra') + | 182 patch_project='infra') + |
| 176 diff('DEPS') | 183 diff('DEPS') |
| 177 ) | 184 ) |
| OLD | NEW |