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 os | 7 import os |
8 import sys | 8 import sys |
9 | 9 |
10 from pylib import constants | 10 from pylib import constants |
(...skipping 22 matching lines...) Expand all Loading... |
33 all_tests = [t(is_low_memory=m) for t in test_cases for m in low_memory_modes] | 33 all_tests = [t(is_low_memory=m) for t in test_cases for m in low_memory_modes] |
34 | 34 |
35 if args.test_filter: | 35 if args.test_filter: |
36 all_test_names = [test.qualified_name for test in all_tests] | 36 all_test_names = [test.qualified_name for test in all_tests] |
37 filtered_test_names = unittest_util.FilterTestNames(all_test_names, | 37 filtered_test_names = unittest_util.FilterTestNames(all_test_names, |
38 args.test_filter) | 38 args.test_filter) |
39 all_tests = [t for t in all_tests \ | 39 all_tests = [t for t in all_tests \ |
40 if t.qualified_name in filtered_test_names] | 40 if t.qualified_name in filtered_test_names] |
41 | 41 |
42 def TestRunnerFactory(device, _shard_index): | 42 def TestRunnerFactory(device, _shard_index): |
43 return test_runner.LinkerTestRunner( | 43 return test_runner.LinkerTestRunner(device, args.tool) |
44 device, args.tool, args.cleanup_test_files) | |
45 | 44 |
46 return (TestRunnerFactory, all_tests) | 45 return (TestRunnerFactory, all_tests) |
OLD | NEW |