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

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

Issue 2045473002: depot_tools: expose paths to presubmit_support.py and upload_to_google_storage.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: presubmit Created 4 years, 6 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 | Annotate | Revision Log
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 'depot_tools', 6 'depot_tools',
7 'recipe_engine/step', 7 'recipe_engine/step',
8 'recipe_engine/path', 8 'recipe_engine/path',
9 'recipe_engine/platform', 9 'recipe_engine/platform',
10 ] 10 ]
11 11
12 12
13 def RunSteps(api): 13 def RunSteps(api):
14 api.step( 14 api.step(
15 'download_from_google_storage', 15 'download_from_google_storage',
16 ['ls', api.depot_tools.download_from_google_storage_path]) 16 ['ls', api.depot_tools.download_from_google_storage_path])
17 17
18 api.step(
19 'upload_to_google_storage',
20 ['ls', api.depot_tools.upload_to_google_storage_path])
21
18 api.step('cros', ['ls', api.depot_tools.cros_path]) 22 api.step('cros', ['ls', api.depot_tools.cros_path])
19 23
20 api.step( 24 api.step(
21 'gn_py_path', ['ls', api.depot_tools.gn_py_path]) 25 'gn_py_path', ['ls', api.depot_tools.gn_py_path])
22 26
23 api.step( 27 api.step(
24 'gsutil_py_path', ['ls', api.depot_tools.gsutil_py_path]) 28 'gsutil_py_path', ['ls', api.depot_tools.gsutil_py_path])
25 29
26 api.step( 30 api.step(
27 'ninja_path', ['ls', api.depot_tools.ninja_path]) 31 'ninja_path', ['ls', api.depot_tools.ninja_path])
28 32
29 33
30 34
31 def GenTests(api): 35 def GenTests(api):
32 yield api.test('basic') 36 yield api.test('basic')
33 37
34 yield api.test('win') + api.platform('win', 32) 38 yield api.test('win') + api.platform('win', 32)
OLDNEW
« no previous file with comments | « recipe_modules/depot_tools/api.py ('k') | recipe_modules/depot_tools/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698