Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: recipe_modules/infra_paths/example.py

Issue 1924583002: Revert of depot_tools: add test_api to infra_paths recipe module (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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'))
OLDNEW
« no previous file with comments | « recipe_modules/infra_paths/api.py ('k') | recipe_modules/infra_paths/example.expected/linux.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698