Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Side by Side Diff: build/android/pylib/junit/setup.py

Issue 775863004: Revert "[Android] Switch b/a/test_runner.py from optparse to argparse." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/android/pylib/constants.py ('k') | build/android/pylib/junit/test_runner.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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(options):
8 """Creates a test runner factory for junit tests. 8 """Creates a test runner factory for junit tests.
9 9
10 Args:
11 args: an argparse.Namespace object.
12 Return: 10 Return:
13 A (runner_factory, tests) tuple. 11 A (runner_factory, tests) tuple.
14 """ 12 """
15 13
16 def TestRunnerFactory(_unused_device, _unused_shard_index): 14 def TestRunnerFactory(_unused_device, _unused_shard_index):
17 return test_runner.JavaTestRunner(args) 15 return test_runner.JavaTestRunner(options)
18 16
19 return (TestRunnerFactory, ['JUnit tests']) 17 return (TestRunnerFactory, ['JUnit tests'])
20 18
OLDNEW
« no previous file with comments | « build/android/pylib/constants.py ('k') | build/android/pylib/junit/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698