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

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

Issue 1564583003: [Android] Add APK under test and additional APK support for the old mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/instrumentation/test_package.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 argparse 9 import argparse
10 import collections 10 import collections
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 args.coverage_dir, 443 args.coverage_dir,
444 args.test_apk, 444 args.test_apk,
445 args.test_apk_path, 445 args.test_apk_path,
446 args.test_apk_jar_path, 446 args.test_apk_jar_path,
447 args.test_runner, 447 args.test_runner,
448 args.test_support_apk_path, 448 args.test_support_apk_path,
449 args.device_flags, 449 args.device_flags,
450 args.isolate_file_path, 450 args.isolate_file_path,
451 args.set_asserts, 451 args.set_asserts,
452 args.delete_stale_data, 452 args.delete_stale_data,
453 args.timeout_scale) 453 args.timeout_scale,
454 args.apk_under_test,
455 args.additional_apks)
454 456
455 457
456 def AddUIAutomatorTestOptions(parser): 458 def AddUIAutomatorTestOptions(parser):
457 """Adds UI Automator test options to |parser|.""" 459 """Adds UI Automator test options to |parser|."""
458 460
459 group = parser.add_argument_group('UIAutomator Test Options') 461 group = parser.add_argument_group('UIAutomator Test Options')
460 AddJavaTestOptions(group) 462 AddJavaTestOptions(group)
461 group.add_argument( 463 group.add_argument(
462 '--package', required=True, choices=constants.PACKAGE_INFO.keys(), 464 '--package', required=True, choices=constants.PACKAGE_INFO.keys(),
463 metavar='PACKAGE', help='Package under test.') 465 metavar='PACKAGE', help='Package under test.')
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 if e.is_infra_error: 1086 if e.is_infra_error:
1085 return constants.INFRA_EXIT_CODE 1087 return constants.INFRA_EXIT_CODE
1086 return constants.ERROR_EXIT_CODE 1088 return constants.ERROR_EXIT_CODE
1087 except: # pylint: disable=W0702 1089 except: # pylint: disable=W0702
1088 logging.exception('Unrecognized error occurred.') 1090 logging.exception('Unrecognized error occurred.')
1089 return constants.ERROR_EXIT_CODE 1091 return constants.ERROR_EXIT_CODE
1090 1092
1091 1093
1092 if __name__ == '__main__': 1094 if __name__ == '__main__':
1093 sys.exit(main()) 1095 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/pylib/instrumentation/test_package.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698