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

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

Issue 2874173002: Retreive screenshots captured by tests from test devices. (Closed)
Patch Set: Rebase Created 3 years, 7 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
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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 '--test-apk', 418 '--test-apk',
419 required=True, 419 required=True,
420 help='Path or name of the apk containing the tests.') 420 help='Path or name of the apk containing the tests.')
421 parser.add_argument( 421 parser.add_argument(
422 '--test-jar', 422 '--test-jar',
423 help='Path of jar containing test java files.') 423 help='Path of jar containing test java files.')
424 parser.add_argument( 424 parser.add_argument(
425 '--timeout-scale', 425 '--timeout-scale',
426 type=float, 426 type=float,
427 help='Factor by which timeouts should be scaled.') 427 help='Factor by which timeouts should be scaled.')
428 parser.add_argument(
429 '--ui-screenshot-directory',
430 dest='ui_screenshot_dir', type=os.path.realpath,
431 help='Destination for screenshots captured by the tests')
432 parser.add_argument(
mikecase (-- gone --) 2017/05/19 15:46:43 This looks like it was accidentally re-added
aberent 2017/05/22 18:03:20 Done.
433 '-w', '--wait_debugger',
434 action='store_true', dest='wait_for_debugger',
435 help='Wait for debugger.')
428 436
429 # These arguments are suppressed from the help text because they should 437 # These arguments are suppressed from the help text because they should
430 # only ever be specified by an intermediate script. 438 # only ever be specified by an intermediate script.
431 parser.add_argument( 439 parser.add_argument(
432 '--apk-under-test-incremental-install-script', 440 '--apk-under-test-incremental-install-script',
433 help=argparse.SUPPRESS) 441 help=argparse.SUPPRESS)
434 parser.add_argument( 442 parser.add_argument(
435 '--test-apk-incremental-install-script', 443 '--test-apk-incremental-install-script',
436 type=os.path.realpath, 444 type=os.path.realpath,
437 help=argparse.SUPPRESS) 445 help=argparse.SUPPRESS)
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 if e.is_infra_error: 933 if e.is_infra_error:
926 return constants.INFRA_EXIT_CODE 934 return constants.INFRA_EXIT_CODE
927 return constants.ERROR_EXIT_CODE 935 return constants.ERROR_EXIT_CODE
928 except: # pylint: disable=W0702 936 except: # pylint: disable=W0702
929 logging.exception('Unrecognized error occurred.') 937 logging.exception('Unrecognized error occurred.')
930 return constants.ERROR_EXIT_CODE 938 return constants.ERROR_EXIT_CODE
931 939
932 940
933 if __name__ == '__main__': 941 if __name__ == '__main__':
934 sys.exit(main()) 942 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698