OLD | NEW |
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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 '--runtime-deps-path', | 380 '--runtime-deps-path', |
381 dest='runtime_deps_path', type=os.path.realpath, | 381 dest='runtime_deps_path', type=os.path.realpath, |
382 help='Runtime data dependency file from GN.') | 382 help='Runtime data dependency file from GN.') |
383 parser.add_argument( | 383 parser.add_argument( |
384 '--save-perf-json', | |
385 action='store_true', | |
386 help='Saves the JSON file for each UI Perf test.') | |
387 parser.add_argument( | |
388 '--screenshot-directory', | 384 '--screenshot-directory', |
389 dest='screenshot_dir', type=os.path.realpath, | 385 dest='screenshot_dir', type=os.path.realpath, |
390 help='Capture screenshots of test failures') | 386 help='Capture screenshots of test failures') |
391 parser.add_argument( | 387 parser.add_argument( |
392 '--shared-prefs-file', | 388 '--shared-prefs-file', |
393 dest='shared_prefs_file', type=os.path.realpath, | 389 dest='shared_prefs_file', type=os.path.realpath, |
394 help='The relative path to a file containing JSON list of shared ' | 390 help='The relative path to a file containing JSON list of shared ' |
395 'preference files to edit and how to do so. Example list: ' | 391 'preference files to edit and how to do so. Example list: ' |
396 '[{' | 392 '[{' |
397 ' "package": "com.package.example",' | 393 ' "package": "com.package.example",' |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 if e.is_infra_error: | 921 if e.is_infra_error: |
926 return constants.INFRA_EXIT_CODE | 922 return constants.INFRA_EXIT_CODE |
927 return constants.ERROR_EXIT_CODE | 923 return constants.ERROR_EXIT_CODE |
928 except: # pylint: disable=W0702 | 924 except: # pylint: disable=W0702 |
929 logging.exception('Unrecognized error occurred.') | 925 logging.exception('Unrecognized error occurred.') |
930 return constants.ERROR_EXIT_CODE | 926 return constants.ERROR_EXIT_CODE |
931 | 927 |
932 | 928 |
933 if __name__ == '__main__': | 929 if __name__ == '__main__': |
934 sys.exit(main()) | 930 sys.exit(main()) |
OLD | NEW |