OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 'infra_paths', | 6 'infra_paths', |
7 'recipe_engine/path', | |
8 'recipe_engine/platform', | 7 'recipe_engine/platform', |
9 'recipe_engine/properties', | 8 'recipe_engine/properties', |
10 'recipe_engine/step', | 9 'recipe_engine/step', |
11 ] | 10 ] |
12 | 11 |
13 from recipe_engine.config_types import Path | 12 from recipe_engine.config_types import Path |
14 | 13 |
15 def RunSteps(api): | 14 def RunSteps(api): |
16 api.step('step', [], cwd=api.infra_paths['slave_build']) | 15 api.step('step', [], cwd=api.infra_paths['slave_build']) |
17 | 16 |
18 if api.path.exists(api.infra_paths['slave_build'].join('foo.txt')): | |
19 api.step('path exists', []) | |
20 | |
21 | 17 |
22 def GenTests(api): | 18 def GenTests(api): |
23 for platform in ('linux', 'win', 'mac'): | 19 for platform in ('linux', 'win', 'mac'): |
24 yield (api.test(platform) + | 20 yield (api.test(platform) + api.platform.name(platform)) |
25 api.platform.name(platform) + | |
26 api.infra_paths.exists( | |
27 api.infra_paths['slave_build'].join('foo.txt'))) | |
28 | 21 |
29 yield (api.test('%s_kitchen' % platform) + | 22 yield (api.test('%s_kitchen' % platform) + |
30 api.platform.name(platform) + | 23 api.platform.name(platform) + |
31 api.properties(path_config='kitchen')) | 24 api.properties(path_config='kitchen')) |
OLD | NEW |