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

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

Issue 757683002: [Android] Implement generic JSON results that match base/test/launcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit issue Created 6 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
« no previous file with comments | « build/android/PRESUBMIT.py ('k') | build/android/pylib/results/__init__.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.results.json_results_test',
190 'pylib.utils.md5sum_test', 191 'pylib.utils.md5sum_test',
191 ] 192 ]
192 }, 193 },
193 'gyp_py_unittests': { 194 'gyp_py_unittests': {
194 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android', 'gyp'), 195 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android', 'gyp'),
195 'test_modules': [ 196 'test_modules': [
196 'java_cpp_enum_tests', 197 'java_cpp_enum_tests',
197 ] 198 ]
198 }, 199 },
199 } 200 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 with file(os.devnull, 'w') as devnull: 271 with file(os.devnull, 'w') as devnull:
271 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) 272 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull)
272 return 'adb' 273 return 'adb'
273 except OSError: 274 except OSError:
274 logging.debug('No adb found in $PATH, fallback to checked in binary.') 275 logging.debug('No adb found in $PATH, fallback to checked in binary.')
275 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') 276 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb')
276 277
277 # Exit codes 278 # Exit codes
278 ERROR_EXIT_CODE = 1 279 ERROR_EXIT_CODE = 1
279 WARNING_EXIT_CODE = 88 280 WARNING_EXIT_CODE = 88
OLDNEW
« no previous file with comments | « build/android/PRESUBMIT.py ('k') | build/android/pylib/results/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698