| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 """Setup for instrumentation host-driven tests.""" | 5 """Setup for instrumentation host-driven tests.""" |
| 6 | 6 |
| 7 import logging | 7 import logging |
| 8 import os | 8 import os |
| 9 import sys | 9 import sys |
| 10 import types | 10 import types |
| 11 | 11 |
| 12 import test_case | 12 from pylib.host_driven import test_case |
| 13 import test_info_collection | 13 from pylib.host_driven import test_info_collection |
| 14 import test_runner | 14 from pylib.host_driven import test_runner |
| 15 | 15 |
| 16 | 16 |
| 17 def _GetPythonFiles(root, files): | 17 def _GetPythonFiles(root, files): |
| 18 """Returns all files from |files| that end in 'Test.py'. | 18 """Returns all files from |files| that end in 'Test.py'. |
| 19 | 19 |
| 20 Args: | 20 Args: |
| 21 root: A directory name with python files. | 21 root: A directory name with python files. |
| 22 files: A list of file names. | 22 files: A list of file names. |
| 23 | 23 |
| 24 Returns: | 24 Returns: |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 [t.tagged_name for t in available_tests])) | 193 [t.tagged_name for t in available_tests])) |
| 194 | 194 |
| 195 def TestRunnerFactory(device, shard_index): | 195 def TestRunnerFactory(device, shard_index): |
| 196 return test_runner.HostDrivenTestRunner( | 196 return test_runner.HostDrivenTestRunner( |
| 197 device, shard_index, | 197 device, shard_index, |
| 198 instrumentation_options.tool, | 198 instrumentation_options.tool, |
| 199 instrumentation_options.push_deps, | 199 instrumentation_options.push_deps, |
| 200 instrumentation_options.cleanup_test_files) | 200 instrumentation_options.cleanup_test_files) |
| 201 | 201 |
| 202 return (TestRunnerFactory, available_tests) | 202 return (TestRunnerFactory, available_tests) |
| OLD | NEW |