| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 'gyp_py_unittests': { | 133 'gyp_py_unittests': { |
| 134 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android', 'gyp'), | 134 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android', 'gyp'), |
| 135 'test_modules': [ | 135 'test_modules': [ |
| 136 'java_cpp_enum_tests', | 136 'java_cpp_enum_tests', |
| 137 'java_google_api_keys_tests', | 137 'java_google_api_keys_tests', |
| 138 ] | 138 ] |
| 139 }, | 139 }, |
| 140 } | 140 } |
| 141 | 141 |
| 142 LOCAL_MACHINE_TESTS = ['junit', 'python'] | 142 LOCAL_MACHINE_TESTS = ['junit', 'python'] |
| 143 VALID_ENVIRONMENTS = ['local', 'remote_device'] | 143 VALID_ENVIRONMENTS = ['local'] |
| 144 VALID_TEST_TYPES = ['gtest', 'instrumentation', 'junit', 'linker', 'monkey', | 144 VALID_TEST_TYPES = ['gtest', 'instrumentation', 'junit', 'linker', 'monkey', |
| 145 'perf', 'python', 'uirobot'] | 145 'perf', 'python'] |
| 146 VALID_DEVICE_TYPES = ['Android', 'iOS'] | 146 VALID_DEVICE_TYPES = ['Android', 'iOS'] |
| 147 | 147 |
| 148 | 148 |
| 149 def GetBuildType(): | 149 def GetBuildType(): |
| 150 try: | 150 try: |
| 151 return os.environ['BUILDTYPE'] | 151 return os.environ['BUILDTYPE'] |
| 152 except KeyError: | 152 except KeyError: |
| 153 raise EnvironmentError( | 153 raise EnvironmentError( |
| 154 'The BUILDTYPE environment variable has not been set') | 154 'The BUILDTYPE environment variable has not been set') |
| 155 | 155 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 # remove this. | 216 # remove this. |
| 217 def GetAdbPath(): | 217 def GetAdbPath(): |
| 218 from devil.android.sdk import adb_wrapper | 218 from devil.android.sdk import adb_wrapper |
| 219 return adb_wrapper.AdbWrapper.GetAdbPath() | 219 return adb_wrapper.AdbWrapper.GetAdbPath() |
| 220 | 220 |
| 221 | 221 |
| 222 # Exit codes | 222 # Exit codes |
| 223 ERROR_EXIT_CODE = exit_codes.ERROR | 223 ERROR_EXIT_CODE = exit_codes.ERROR |
| 224 INFRA_EXIT_CODE = exit_codes.INFRA | 224 INFRA_EXIT_CODE = exit_codes.INFRA |
| 225 WARNING_EXIT_CODE = exit_codes.WARNING | 225 WARNING_EXIT_CODE = exit_codes.WARNING |
| OLD | NEW |