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

Unified Diff: build/android/test_runner.py

Issue 19799003: [android] Instumentation tests determine whether to install test apk based on Md5Sum. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unnecessary import Created 7 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/instrumentation/test_runner.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/test_runner.py
diff --git a/build/android/test_runner.py b/build/android/test_runner.py
index f89fdb9263bc9008ac61a6e3325e765b8c90bfe5..732266185297a394f4902cd19e92e4acbabeb4d6 100755
--- a/build/android/test_runner.py
+++ b/build/android/test_runner.py
@@ -265,7 +265,7 @@ def AddInstrumentationTestOptions(option_parser):
option_parser.usage = '%prog instrumentation [options]'
option_parser.command_list = []
- option_parser.example = ('%prog instrumentation -I '
+ option_parser.example = ('%prog instrumentation '
'--test-apk=ChromiumTestShellTest')
AddJavaTestOptions(option_parser)
@@ -274,8 +274,9 @@ def AddInstrumentationTestOptions(option_parser):
option_parser.add_option('-w', '--wait_debugger', dest='wait_for_debugger',
action='store_true',
help='Wait for debugger.')
+ #TODO(craigdh): Remove option once -I is no longer passed downstream.
option_parser.add_option('-I', dest='install_apk', action='store_true',
- help='Install test APK.')
+ help='(DEPRECATED) Install the test apk.')
option_parser.add_option(
'--test-apk', dest='test_apk',
help=('The name of the apk containing the tests '
@@ -428,10 +429,9 @@ def _RunInstrumentationTests(options, error_func):
runner_factory, tests = instrumentation_setup.Setup(
options.test_apk_path, options.test_apk_jar_path, options.annotations,
options.exclude_annotations, options.test_filter, options.build_type,
- options.test_data, options.install_apk, options.save_perf_json,
- options.screenshot_failures, options.tool, options.wait_for_debugger,
- options.disable_assertions, options.push_deps,
- options.cleanup_test_files)
+ options.test_data, options.save_perf_json, options.screenshot_failures,
+ options.tool, options.wait_for_debugger, options.disable_assertions,
+ options.push_deps, options.cleanup_test_files)
test_results, exit_code = test_dispatcher.RunTests(
tests, runner_factory, options.wait_for_debugger,
« no previous file with comments | « build/android/pylib/instrumentation/test_runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698