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

Side by Side Diff: build/android/pylib/constants.py

Issue 738413002: [Android] Extract MD5sum logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « build/android/PRESUBMIT.py ('k') | build/android/pylib/device/device_utils.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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 """Defines a set of constants shared by test runners and other scripts.""" 5 """Defines a set of constants shared by test runners and other scripts."""
6 # pylint: disable=W0212 6 # pylint: disable=W0212
7 7
8 import collections 8 import collections
9 import logging 9 import logging
10 import os 10 import os
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 UPSTREAM_FLAKINESS_SERVER = 'test-results.appspot.com' 181 UPSTREAM_FLAKINESS_SERVER = 'test-results.appspot.com'
182 182
183 DEVICE_LOCAL_PROPERTIES_PATH = '/data/local.prop' 183 DEVICE_LOCAL_PROPERTIES_PATH = '/data/local.prop'
184 184
185 PYTHON_UNIT_TEST_SUITES = { 185 PYTHON_UNIT_TEST_SUITES = {
186 'pylib_py_unittests': { 186 'pylib_py_unittests': {
187 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android'), 187 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android'),
188 'test_modules': [ 188 'test_modules': [
189 'pylib.device.device_utils_test', 189 'pylib.device.device_utils_test',
190 'pylib.utils.md5sum_test',
190 ] 191 ]
191 }, 192 },
192 'gyp_py_unittests': { 193 'gyp_py_unittests': {
193 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android', 'gyp'), 194 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android', 'gyp'),
194 'test_modules': [ 195 'test_modules': [
195 'java_cpp_enum_tests', 196 'java_cpp_enum_tests',
196 ] 197 ]
197 }, 198 },
198 } 199 }
199 200
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 with file(os.devnull, 'w') as devnull: 270 with file(os.devnull, 'w') as devnull:
270 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) 271 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull)
271 return 'adb' 272 return 'adb'
272 except OSError: 273 except OSError:
273 logging.debug('No adb found in $PATH, fallback to checked in binary.') 274 logging.debug('No adb found in $PATH, fallback to checked in binary.')
274 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') 275 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb')
275 276
276 # Exit codes 277 # Exit codes
277 ERROR_EXIT_CODE = 1 278 ERROR_EXIT_CODE = 1
278 WARNING_EXIT_CODE = 88 279 WARNING_EXIT_CODE = 88
OLDNEW
« no previous file with comments | « build/android/PRESUBMIT.py ('k') | build/android/pylib/device/device_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698