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

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

Issue 23889036: Refactor the way that TestApi works so that it is actually useful. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Yeeeeaaaahhhhhh! Created 7 years, 3 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 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 from slave.recipe_configs_util import config_item_context, ConfigGroup 5 from slave.recipe_config import config_item_context, ConfigGroup
6 from slave.recipe_configs_util import SimpleConfig, ListConfig, StaticConfig 6 from slave.recipe_config import SimpleConfig, ListConfig, StaticConfig
7 7
8 def BaseConfig(USE_MIRROR=False): 8 def BaseConfig(USE_MIRROR=False):
9 return ConfigGroup( 9 return ConfigGroup(
10 lunch_flavor = SimpleConfig(basestring), 10 lunch_flavor = SimpleConfig(basestring),
11 repo = ConfigGroup( 11 repo = ConfigGroup(
12 url = SimpleConfig(basestring), 12 url = SimpleConfig(basestring),
13 branch = SimpleConfig(basestring), 13 branch = SimpleConfig(basestring),
14 sync_flags = ListConfig(basestring), 14 sync_flags = ListConfig(basestring),
15 ), 15 ),
16 USE_MIRROR = StaticConfig(bool(USE_MIRROR)), 16 USE_MIRROR = StaticConfig(bool(USE_MIRROR)),
17 ) 17 )
18 18
19 config_ctx = config_item_context( 19 config_ctx = config_item_context(
20 BaseConfig, 20 BaseConfig,
21 {'USE_MIRROR': (False,)}, 21 {'USE_MIRROR': (False,)},
22 'android') 22 'android')
23 23
24 @config_ctx() 24 @config_ctx()
25 def AOSP(c): 25 def AOSP(c):
26 c.lunch_flavor = 'full-eng' 26 c.lunch_flavor = 'full-eng'
27 c.repo.url = 'https://android.googlesource.com/platform/manifest' 27 c.repo.url = 'https://android.googlesource.com/platform/manifest'
28 c.repo.branch = 'android-4.3_r2.1' 28 c.repo.branch = 'android-4.3_r2.1'
29 c.repo.sync_flags = ['-j16', '-d', '-f'] 29 c.repo.sync_flags = ['-j16', '-d', '-f']
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698