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 linker tests.""" | 5 """Setup for linker tests.""" |
6 | 6 |
7 import logging | 7 import logging |
8 import os | 8 import os |
9 import sys | 9 import sys |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 logging.warn('Not running LinkerModern tests (requires API %d, found %d)', | 51 logging.warn('Not running LinkerModern tests (requires API %d, found %d)', |
52 _MODERN_LINKER_MINIMUM_SDK_INT, min_sdk_int) | 52 _MODERN_LINKER_MINIMUM_SDK_INT, min_sdk_int) |
53 | 53 |
54 if args.test_filter: | 54 if args.test_filter: |
55 all_test_names = [test.qualified_name for test in all_tests] | 55 all_test_names = [test.qualified_name for test in all_tests] |
56 filtered_test_names = unittest_util.FilterTestNames(all_test_names, | 56 filtered_test_names = unittest_util.FilterTestNames(all_test_names, |
57 args.test_filter) | 57 args.test_filter) |
58 all_tests = [t for t in all_tests \ | 58 all_tests = [t for t in all_tests \ |
59 if t.qualified_name in filtered_test_names] | 59 if t.qualified_name in filtered_test_names] |
60 | 60 |
| 61 # pylint: disable=unused-argument |
61 def TestRunnerFactory(device, _shard_index): | 62 def TestRunnerFactory(device, _shard_index): |
62 return test_runner.LinkerTestRunner(device, args.tool) | 63 return test_runner.LinkerTestRunner(device, args.tool) |
63 | 64 |
64 return (TestRunnerFactory, all_tests) | 65 return (TestRunnerFactory, all_tests) |
OLD | NEW |