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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 if options.test_filter: | 33 if options.test_filter: |
34 all_test_names = [ test.qualified_name for test in all_tests ] | 34 all_test_names = [ test.qualified_name for test in all_tests ] |
35 filtered_test_names = unittest_util.FilterTestNames(all_test_names, | 35 filtered_test_names = unittest_util.FilterTestNames(all_test_names, |
36 options.test_filter) | 36 options.test_filter) |
37 all_tests = [t for t in all_tests \ | 37 all_tests = [t for t in all_tests \ |
38 if t.qualified_name in filtered_test_names] | 38 if t.qualified_name in filtered_test_names] |
39 | 39 |
40 def TestRunnerFactory(device, _shard_index): | 40 def TestRunnerFactory(device, _shard_index): |
41 return test_runner.LinkerTestRunner( | 41 return test_runner.LinkerTestRunner( |
42 device, options.tool, options.push_deps, | 42 device, options.tool, options.cleanup_test_files) |
43 options.cleanup_test_files) | |
44 | 43 |
45 return (TestRunnerFactory, all_tests) | 44 return (TestRunnerFactory, all_tests) |
OLD | NEW |