OLD | NEW |
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 | 6 |
7 # TODO(jbudorick): Split these constants into coherent modules. | 7 # TODO(jbudorick): Split these constants into coherent modules. |
8 | 8 |
9 # pylint: disable=W0212 | 9 # pylint: disable=W0212 |
10 | 10 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 # TODO(jbudorick): Remove once unused. | 183 # TODO(jbudorick): Remove once unused. |
184 DEVICE_LOCAL_PROPERTIES_PATH = '/data/local.prop' | 184 DEVICE_LOCAL_PROPERTIES_PATH = '/data/local.prop' |
185 | 185 |
186 # TODO(jbudorick): Rework this into testing/buildbot/ | 186 # TODO(jbudorick): Rework this into testing/buildbot/ |
187 PYTHON_UNIT_TEST_SUITES = { | 187 PYTHON_UNIT_TEST_SUITES = { |
188 'pylib_py_unittests': { | 188 'pylib_py_unittests': { |
189 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android'), | 189 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android'), |
190 'test_modules': [ | 190 'test_modules': [ |
191 'devil.android.device_utils_test', | 191 'devil.android.device_utils_test', |
| 192 'devil.android.md5sum_test', |
192 'devil.utils.cmd_helper_test', | 193 'devil.utils.cmd_helper_test', |
193 'devil.utils.md5sum_test', | |
194 'pylib.results.json_results_test', | 194 'pylib.results.json_results_test', |
| 195 'pylib.utils.proguard_test', |
195 ] | 196 ] |
196 }, | 197 }, |
197 'gyp_py_unittests': { | 198 'gyp_py_unittests': { |
198 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android', 'gyp'), | 199 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android', 'gyp'), |
199 'test_modules': [ | 200 'test_modules': [ |
200 'java_cpp_enum_tests', | 201 'java_cpp_enum_tests', |
201 ] | 202 ] |
202 }, | 203 }, |
203 } | 204 } |
204 | 205 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) | 280 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) |
280 return 'adb' | 281 return 'adb' |
281 except OSError: | 282 except OSError: |
282 logging.debug('No adb found in $PATH, fallback to checked in binary.') | 283 logging.debug('No adb found in $PATH, fallback to checked in binary.') |
283 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') | 284 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') |
284 | 285 |
285 # Exit codes | 286 # Exit codes |
286 ERROR_EXIT_CODE = 1 | 287 ERROR_EXIT_CODE = 1 |
287 INFRA_EXIT_CODE = 87 | 288 INFRA_EXIT_CODE = 87 |
288 WARNING_EXIT_CODE = 88 | 289 WARNING_EXIT_CODE = 88 |
OLD | NEW |