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 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 available_tests = test_collection.GetAvailableTests( | 188 available_tests = test_collection.GetAvailableTests( |
189 instrumentation_options.annotations, | 189 instrumentation_options.annotations, |
190 instrumentation_options.exclude_annotations, | 190 instrumentation_options.exclude_annotations, |
191 instrumentation_options.test_filter) | 191 instrumentation_options.test_filter) |
192 logging.debug('All available tests: ' + str( | 192 logging.debug('All available tests: ' + str( |
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.cleanup_test_files) | |
200 | 199 |
201 return (TestRunnerFactory, available_tests) | 200 return (TestRunnerFactory, available_tests) |
OLD | NEW |