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

Side by Side Diff: build/android/test_runner.py

Issue 422393002: [Android] Fix the uiautomator test runner's use of InstrumentationOptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « build/android/pylib/uiautomator/test_runner.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Runs all types of tests from one unified interface.""" 7 """Runs all types of tests from one unified interface."""
8 8
9 import collections 9 import collections
10 import logging 10 import logging
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 options.test_runner = apk_helper.GetInstrumentationName(options.test_apk_path) 284 options.test_runner = apk_helper.GetInstrumentationName(options.test_apk_path)
285 285
286 return instrumentation_test_options.InstrumentationOptions( 286 return instrumentation_test_options.InstrumentationOptions(
287 options.tool, 287 options.tool,
288 options.cleanup_test_files, 288 options.cleanup_test_files,
289 options.push_deps, 289 options.push_deps,
290 options.annotations, 290 options.annotations,
291 options.exclude_annotations, 291 options.exclude_annotations,
292 options.test_filter, 292 options.test_filter,
293 options.test_data, 293 options.test_data,
294 options.test_runner,
295 options.save_perf_json, 294 options.save_perf_json,
296 options.screenshot_failures, 295 options.screenshot_failures,
297 options.wait_for_debugger, 296 options.wait_for_debugger,
298 options.coverage_dir, 297 options.coverage_dir,
299 options.test_apk, 298 options.test_apk,
300 options.test_apk_path, 299 options.test_apk_path,
301 options.test_apk_jar_path, 300 options.test_apk_jar_path,
301 options.test_runner,
302 options.test_support_apk_path 302 options.test_support_apk_path
303 ) 303 )
304 304
305 305
306 def AddUIAutomatorTestOptions(option_parser): 306 def AddUIAutomatorTestOptions(option_parser):
307 """Adds UI Automator test options to |option_parser|.""" 307 """Adds UI Automator test options to |option_parser|."""
308 308
309 option_parser.usage = '%prog uiautomator [options]' 309 option_parser.usage = '%prog uiautomator [options]'
310 option_parser.commands_dict = {} 310 option_parser.commands_dict = {}
311 option_parser.example = ( 311 option_parser.example = (
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 827
828 def main(): 828 def main():
829 signal.signal(signal.SIGUSR1, DumpThreadStacks) 829 signal.signal(signal.SIGUSR1, DumpThreadStacks)
830 option_parser = command_option_parser.CommandOptionParser( 830 option_parser = command_option_parser.CommandOptionParser(
831 commands_dict=VALID_COMMANDS) 831 commands_dict=VALID_COMMANDS)
832 return command_option_parser.ParseAndExecute(option_parser) 832 return command_option_parser.ParseAndExecute(option_parser)
833 833
834 834
835 if __name__ == '__main__': 835 if __name__ == '__main__':
836 sys.exit(main()) 836 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/pylib/uiautomator/test_runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698