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

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

Issue 2901053003: 📷 Create RenderTestRule which fails after test method finishes. (Closed)
Patch Set: Typo in comment. 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 'annotations.') 369 'annotations.')
370 parser.add_argument( 370 parser.add_argument(
371 '-f', '--test-filter', '--gtest_filter', '--gtest-filter', 371 '-f', '--test-filter', '--gtest_filter', '--gtest-filter',
372 dest='test_filter', 372 dest='test_filter',
373 help='Test filter (if not fully qualified, will run all matches).') 373 help='Test filter (if not fully qualified, will run all matches).')
374 parser.add_argument( 374 parser.add_argument(
375 '--gtest_also_run_disabled_tests', '--gtest-also-run-disabled-tests', 375 '--gtest_also_run_disabled_tests', '--gtest-also-run-disabled-tests',
376 dest='run_disabled', action='store_true', 376 dest='run_disabled', action='store_true',
377 help='Also run disabled tests if applicable.') 377 help='Also run disabled tests if applicable.')
378 parser.add_argument( 378 parser.add_argument(
379 '--regenerate-goldens',
380 action='store_true', dest='regenerate_goldens',
381 help='Causes the render tests to not fail when a check'
382 'fails or the golden image is missing but to render'
383 'the view and carry on.')
384 parser.add_argument(
385 '--render-results-directory', 379 '--render-results-directory',
386 dest='render_results_dir', 380 dest='render_results_dir',
387 help='Directory to pull render test result images off of the device to.') 381 help='Directory to pull render test result images off of the device to.')
388 parser.add_argument( 382 parser.add_argument(
389 '--runtime-deps-path', 383 '--runtime-deps-path',
390 dest='runtime_deps_path', type=os.path.realpath, 384 dest='runtime_deps_path', type=os.path.realpath,
391 help='Runtime data dependency file from GN.') 385 help='Runtime data dependency file from GN.')
392 parser.add_argument( 386 parser.add_argument(
393 '--screenshot-directory', 387 '--screenshot-directory',
394 dest='screenshot_dir', type=os.path.realpath, 388 dest='screenshot_dir', type=os.path.realpath,
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 if e.is_infra_error: 928 if e.is_infra_error:
935 return constants.INFRA_EXIT_CODE 929 return constants.INFRA_EXIT_CODE
936 return constants.ERROR_EXIT_CODE 930 return constants.ERROR_EXIT_CODE
937 except: # pylint: disable=W0702 931 except: # pylint: disable=W0702
938 logging.exception('Unrecognized error occurred.') 932 logging.exception('Unrecognized error occurred.')
939 return constants.ERROR_EXIT_CODE 933 return constants.ERROR_EXIT_CODE
940 934
941 935
942 if __name__ == '__main__': 936 if __name__ == '__main__':
943 sys.exit(main()) 937 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698