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 # 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 Loading... |
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 Loading... |
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 |
OLD | NEW |