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

Side by Side Diff: scripts/slave/recipe_modules/skia/android_flavor.py

Issue 2099713002: Download the Android SDK as a CIPD package (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@cipd_swarm
Patch Set: Rebase Created 4 years, 5 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
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/skia_swarming/api.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5
6 import android_devices 6 import android_devices
7 import copy 7 import copy
8 import default_flavor 8 import default_flavor
9 9
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 class AndroidFlavorUtils(default_flavor.DefaultFlavorUtils): 62 class AndroidFlavorUtils(default_flavor.DefaultFlavorUtils):
63 def __init__(self, skia_api): 63 def __init__(self, skia_api):
64 super(AndroidFlavorUtils, self).__init__(skia_api) 64 super(AndroidFlavorUtils, self).__init__(skia_api)
65 self.device = self._skia_api.builder_spec['device_cfg'] 65 self.device = self._skia_api.builder_spec['device_cfg']
66 slave_info = android_devices.SLAVE_INFO.get( 66 slave_info = android_devices.SLAVE_INFO.get(
67 self._skia_api.slave_name, 67 self._skia_api.slave_name,
68 android_devices.SLAVE_INFO['default']) 68 android_devices.SLAVE_INFO['default'])
69 self.android_bin = self._skia_api.skia_dir.join( 69 self.android_bin = self._skia_api.skia_dir.join(
70 'platform_tools', 'android', 'bin') 70 'platform_tools', 'android', 'bin')
71 self._android_sdk_root = self._skia_api.slave_dir.join('android-sdk') 71 self._android_sdk_root = self._skia_api.slave_dir.join(
72 'android_sdk', 'android-sdk')
rmistry 2016/06/30 11:27:41 Two directories with different separators is... st
borenet 2016/06/30 11:33:39 Yeah... 1. The CIPD package containing the Androi
72 self.serial = None 73 self.serial = None
73 self.serial_args = [] 74 self.serial_args = []
74 try: 75 try:
75 path_to_adb = self._skia_api.m.step( 76 path_to_adb = self._skia_api.m.step(
76 'which adb', 77 'which adb',
77 cmd=['which', 'adb'], 78 cmd=['which', 'adb'],
78 stdout=self._skia_api.m.raw_io.output(), 79 stdout=self._skia_api.m.raw_io.output(),
79 infra_step=True).stdout.rstrip() 80 infra_step=True).stdout.rstrip()
80 except self._skia_api.m.step.StepFailure: 81 except self._skia_api.m.step.StepFailure:
81 path_to_adb = self._skia_api.m.path.join(self._android_sdk_root, 82 path_to_adb = self._skia_api.m.path.join(self._android_sdk_root,
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 ).stdout.rstrip() 307 ).stdout.rstrip()
307 prefix = self.device_path_join(device_scratch_dir, 'skiabot', 'skia_') 308 prefix = self.device_path_join(device_scratch_dir, 'skiabot', 'skia_')
308 return default_flavor.DeviceDirs( 309 return default_flavor.DeviceDirs(
309 dm_dir=prefix + 'dm', 310 dm_dir=prefix + 'dm',
310 perf_data_dir=prefix + 'perf', 311 perf_data_dir=prefix + 'perf',
311 resource_dir=prefix + 'resources', 312 resource_dir=prefix + 'resources',
312 images_dir=prefix + 'images', 313 images_dir=prefix + 'images',
313 skp_dir=prefix + 'skp/skps', 314 skp_dir=prefix + 'skp/skps',
314 tmp_dir=prefix + 'tmp_dir') 315 tmp_dir=prefix + 'tmp_dir')
315 316
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/skia_swarming/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698