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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/config.py

Issue 1465343002: [Android] Add context manager to record logcat during step(s). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Removed unused config. Created 5 years 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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 import types 5 import types
6 6
7 from recipe_engine.config import config_item_context, ConfigGroup 7 from recipe_engine.config import config_item_context, ConfigGroup
8 from recipe_engine.config import ConfigList, Dict, List, Single, Static 8 from recipe_engine.config import ConfigList, Dict, List, Single, Static
9 from recipe_engine.config_types import Path 9 from recipe_engine.config_types import Path
10 10
(...skipping 11 matching lines...) Expand all
22 run_tree_truth = Single(bool, required=False, empty_val=True), 22 run_tree_truth = Single(bool, required=False, empty_val=True),
23 deps_file = Single(basestring, required=False, empty_val='.DEPS.git'), 23 deps_file = Single(basestring, required=False, empty_val='.DEPS.git'),
24 internal_dir_name = Single(basestring, required=False), 24 internal_dir_name = Single(basestring, required=False),
25 # deps_dir: where to checkout the gclient deps file 25 # deps_dir: where to checkout the gclient deps file
26 deps_dir = Single(basestring, required=False, empty_val=REPO_NAME), 26 deps_dir = Single(basestring, required=False, empty_val=REPO_NAME),
27 managed = Single(bool, required=False, empty_val=True), 27 managed = Single(bool, required=False, empty_val=True),
28 extra_deploy_opts = List(inner_type=basestring), 28 extra_deploy_opts = List(inner_type=basestring),
29 tests = List(inner_type=basestring), 29 tests = List(inner_type=basestring),
30 cr_build_android = Static(Path('[CHECKOUT]', 'build', 'android')), 30 cr_build_android = Static(Path('[CHECKOUT]', 'build', 'android')),
31 test_runner = Single(Path), 31 test_runner = Single(Path),
32 default_logcat_dir = Single(Path),
32 gclient_custom_deps = Dict(value_type=(basestring, types.NoneType)), 33 gclient_custom_deps = Dict(value_type=(basestring, types.NoneType)),
33 channel = Single(basestring, empty_val='chrome'), 34 channel = Single(basestring, empty_val='chrome'),
34 gclient_custom_vars = Dict(value_type=(basestring, types.NoneType)), 35 gclient_custom_vars = Dict(value_type=(basestring, types.NoneType)),
35 coverage = Single(bool, required=False, empty_val=False), 36 coverage = Single(bool, required=False, empty_val=False),
36 chrome_specific_wipe = Single(bool, required=False, empty_val=False), 37 chrome_specific_wipe = Single(bool, required=False, empty_val=False),
37 incremental_coverage = Single(bool, required=False, empty_val=False), 38 incremental_coverage = Single(bool, required=False, empty_val=False),
38 env = ConfigGroup( 39 env = ConfigGroup(
39 LLVM_FORCE_HEAD_REVISION = Single(basestring, required=False), 40 LLVM_FORCE_HEAD_REVISION = Single(basestring, required=False),
40 ), 41 ),
41 gce_setup = Single(bool, required=False, empty_val=False), 42 gce_setup = Single(bool, required=False, empty_val=False),
42 ) 43 )
43 44
44 45
45 config_ctx = config_item_context(BaseConfig) 46 config_ctx = config_item_context(BaseConfig)
46 47
47 @config_ctx(is_root=True) 48 @config_ctx(is_root=True)
48 def base_config(c): 49 def base_config(c):
50 c.default_logcat_dir = Path('[CHECKOUT]', 'out', 'logcat_dir')
49 c.internal_dir_name = 'clank' 51 c.internal_dir_name = 'clank'
50 c.test_runner = Path('[CHECKOUT]', 'build', 'android', 'test_runner.py') 52 c.test_runner = Path('[CHECKOUT]', 'build', 'android', 'test_runner.py')
51 53
52 @config_ctx() 54 @config_ctx()
53 def main_builder(c): 55 def main_builder(c):
54 pass 56 pass
55 57
56 @config_ctx() 58 @config_ctx()
57 def clang_builder(c): 59 def clang_builder(c):
58 pass 60 pass
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 def webview_perf(c): 199 def webview_perf(c):
198 pass 200 pass
199 201
200 @config_ctx() 202 @config_ctx()
201 def cast_builder(c): 203 def cast_builder(c):
202 pass 204 pass
203 205
204 @config_ctx(includes=['x86_builder']) 206 @config_ctx(includes=['x86_builder'])
205 def gce_builder(c): 207 def gce_builder(c):
206 c.gce_setup = True 208 c.gce_setup = True
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698