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

Side by Side Diff: scripts/slave/recipe_modules/path/example.py

Issue 297143002: Reland "Simplified android_builder and moved internal-only methods to internal module" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Review comment Created 6 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
OLDNEW
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 'path', 6 'path',
7 'platform', 7 'platform',
8 'step', 8 'step',
9 'step_history', 9 'step_history',
10 ] 10 ]
(...skipping 13 matching lines...) Expand all
24 # Create temp dir. 24 # Create temp dir.
25 temp_dir = api.path.mkdtemp(prefix) 25 temp_dir = api.path.mkdtemp(prefix)
26 assert api.path.exists(temp_dir) 26 assert api.path.exists(temp_dir)
27 # Make |temp_dir| surface in expectation files. 27 # Make |temp_dir| surface in expectation files.
28 yield api.step('print %s' % prefix, ['echo', temp_dir]) 28 yield api.step('print %s' % prefix, ['echo', temp_dir])
29 29
30 # module.resource(...) demo. 30 # module.resource(...) demo.
31 yield api.step('print resource', 31 yield api.step('print resource',
32 ['echo', api.path.resource('dir', 'file.py')]) 32 ['echo', api.path.resource('dir', 'file.py')])
33 33
34 # rmwildcard demo
35 yield api.path.rmwildcard('*.o', api.path['slave_build'])
36
34 37
35 def GenTests(api): 38 def GenTests(api):
36 # This line is for code coverage. 39 # This line is for code coverage.
37 api.path['slave_build'].join('foo') 40 api.path['slave_build'].join('foo')
38 41
39 for platform in ('linux', 'win', 'mac'): 42 for platform in ('linux', 'win', 'mac'):
40 yield api.test(platform) + api.platform.name(platform) 43 yield api.test(platform) + api.platform.name(platform)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698