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

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

Issue 2889663003: Add --render-results-dir arg to store render results locally. (Closed)
Patch Set: Add --render-results-dir arg to store render results locally. 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
« no previous file with comments | « build/android/pylib/local/device/local_device_instrumentation_test_run.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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 '--gtest_also_run_disabled_tests', '--gtest-also-run-disabled-tests', 370 '--gtest_also_run_disabled_tests', '--gtest-also-run-disabled-tests',
371 dest='run_disabled', action='store_true', 371 dest='run_disabled', action='store_true',
372 help='Also run disabled tests if applicable.') 372 help='Also run disabled tests if applicable.')
373 parser.add_argument( 373 parser.add_argument(
374 '--regenerate-goldens', 374 '--regenerate-goldens',
375 action='store_true', dest='regenerate_goldens', 375 action='store_true', dest='regenerate_goldens',
376 help='Causes the render tests to not fail when a check' 376 help='Causes the render tests to not fail when a check'
377 'fails or the golden image is missing but to render' 377 'fails or the golden image is missing but to render'
378 'the view and carry on.') 378 'the view and carry on.')
379 parser.add_argument( 379 parser.add_argument(
380 '--render-results-directory',
381 dest='render_results_dir',
382 help='Directory to pull render test result images off of the device to.')
383 parser.add_argument(
380 '--runtime-deps-path', 384 '--runtime-deps-path',
381 dest='runtime_deps_path', type=os.path.realpath, 385 dest='runtime_deps_path', type=os.path.realpath,
382 help='Runtime data dependency file from GN.') 386 help='Runtime data dependency file from GN.')
383 parser.add_argument( 387 parser.add_argument(
384 '--save-perf-json', 388 '--save-perf-json',
385 action='store_true', 389 action='store_true',
386 help='Saves the JSON file for each UI Perf test.') 390 help='Saves the JSON file for each UI Perf test.')
387 parser.add_argument( 391 parser.add_argument(
388 '--screenshot-directory', 392 '--screenshot-directory',
389 dest='screenshot_dir', type=os.path.realpath, 393 dest='screenshot_dir', type=os.path.realpath,
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 if e.is_infra_error: 929 if e.is_infra_error:
926 return constants.INFRA_EXIT_CODE 930 return constants.INFRA_EXIT_CODE
927 return constants.ERROR_EXIT_CODE 931 return constants.ERROR_EXIT_CODE
928 except: # pylint: disable=W0702 932 except: # pylint: disable=W0702
929 logging.exception('Unrecognized error occurred.') 933 logging.exception('Unrecognized error occurred.')
930 return constants.ERROR_EXIT_CODE 934 return constants.ERROR_EXIT_CODE
931 935
932 936
933 if __name__ == '__main__': 937 if __name__ == '__main__':
934 sys.exit(main()) 938 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/pylib/local/device/local_device_instrumentation_test_run.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698