OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 from pylib.junit import test_runner | 5 from pylib.junit import test_runner |
6 | 6 |
7 def Setup(args): | 7 def Setup(args): |
8 """Creates a test runner factory for junit tests. | 8 """Creates a test runner factory for junit tests. |
9 | 9 |
10 Args: | 10 Args: |
11 args: an argparse.Namespace object. | 11 args: an argparse.Namespace object. |
12 Return: | 12 Return: |
13 A (runner_factory, tests) tuple. | 13 A (runner_factory, tests) tuple. |
14 """ | 14 """ |
15 | 15 |
| 16 # pylint: disable=unused-argument |
16 def TestRunnerFactory(_unused_device, _unused_shard_index): | 17 def TestRunnerFactory(_unused_device, _unused_shard_index): |
17 return test_runner.JavaTestRunner(args) | 18 return test_runner.JavaTestRunner(args) |
18 | 19 |
19 return (TestRunnerFactory, ['JUnit tests']) | 20 return (TestRunnerFactory, ['JUnit tests']) |
20 | 21 |
OLD | NEW |