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

Side by Side Diff: infra/bots/recipe_modules/vars/api.py

Issue 2215443003: [recipes] Increase test coverage (Closed) Base URL: https://skia.googlesource.com/skia.git@merge_buildbot_spec
Patch Set: Created 4 years, 4 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 5
6 # pylint: disable=W0201 6 # pylint: disable=W0201
7 7
8 8
9 from recipe_engine import recipe_api 9 from recipe_engine import recipe_api
10 import os 10 import os
11 11
12 12
13 BOTO_CHROMIUM_SKIA_GM = 'chromium-skia-gm.boto' 13 BOTO_CHROMIUM_SKIA_GM = 'chromium-skia-gm.boto'
14 14
15 CONFIG_DEBUG = 'Debug' 15 CONFIG_DEBUG = 'Debug'
16 CONFIG_RELEASE = 'Release' 16 CONFIG_RELEASE = 'Release'
17 17
18 18
19 def device_cfg(builder_dict): 19 def device_cfg(builder_dict):
20 # Android. 20 # Android.
21 if 'Android' in builder_dict.get('extra_config', ''): 21 if 'Android' in builder_dict.get('extra_config', ''):
22 if 'NoNeon' in builder_dict['extra_config']: # pragma: no cover 22 if 'NoNeon' in builder_dict['extra_config']:
23 return 'arm_v7' 23 return 'arm_v7'
24 return { 24 return {
25 'Arm64': 'arm64', 25 'Arm64': 'arm64',
26 'x86': 'x86', 26 'x86': 'x86',
27 'x86_64': 'x86_64', 27 'x86_64': 'x86_64',
28 'Mips': 'mips', 28 'Mips': 'mips',
29 'Mips64': 'mips64', 29 'Mips64': 'mips64',
30 'MipsDSP2': 'mips_dsp2', 30 'MipsDSP2': 'mips_dsp2',
31 }.get(builder_dict['target_arch'], 'arm_v7_neon') 31 }.get(builder_dict['target_arch'], 'arm_v7_neon')
32 elif builder_dict.get('os') == 'Android': 32 elif builder_dict.get('os') == 'Android':
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 if self.is_trybot: 241 if self.is_trybot:
242 self.issue = self.m.properties['issue'] 242 self.issue = self.m.properties['issue']
243 self.patchset = self.m.properties['patchset'] 243 self.patchset = self.m.properties['patchset']
244 self.rietveld = self.m.properties['rietveld'] 244 self.rietveld = self.m.properties['rietveld']
245 self.upload_dm_results = self.builder_spec['upload_dm_results'] 245 self.upload_dm_results = self.builder_spec['upload_dm_results']
246 self.upload_perf_results = self.builder_spec['upload_perf_results'] 246 self.upload_perf_results = self.builder_spec['upload_perf_results']
247 self.dm_dir = self.m.path.join( 247 self.dm_dir = self.m.path.join(
248 self.swarming_out_dir, 'dm') 248 self.swarming_out_dir, 'dm')
249 self.perf_data_dir = self.m.path.join(self.swarming_out_dir, 249 self.perf_data_dir = self.m.path.join(self.swarming_out_dir,
250 'perfdata', self.builder_name, 'data') 250 'perfdata', self.builder_name, 'data')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698