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

Unified Diff: build/android/run_instrumentation_tests.py

Issue 10917283: Upstream changes to python tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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/test_options_parser.py ('k') | build/android/run_monkey_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/run_instrumentation_tests.py
diff --git a/build/android/run_instrumentation_tests.py b/build/android/run_instrumentation_tests.py
index 9e9a280383b75cc109ede1f2a5d22e6641b16bda..5a0b171754d15ec2c08e74db0b1e3ab11ec06fe0 100755
--- a/build/android/run_instrumentation_tests.py
+++ b/build/android/run_instrumentation_tests.py
@@ -6,6 +6,7 @@
"""Runs both the Python and Java tests."""
+import optparse
import sys
import time
@@ -69,7 +70,11 @@ def DispatchInstrumentationTests(options):
def main(argv):
- options = test_options_parser.ParseInstrumentationArgs(argv)
+ option_parser = optparse.OptionParser()
+ test_options_parser.AddInstrumentationOptions(option_parser)
+ options, args = option_parser.parse_args(argv)
+ test_options_parser.ValidateInstrumentationOptions(options, args)
+
run_tests_helper.SetLogLevel(options.verbose_count)
buildbot_report.PrintNamedStep('Instrumentation tests: %s'
% ', '.join(options.annotation))
« no previous file with comments | « build/android/pylib/test_options_parser.py ('k') | build/android/run_monkey_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698