| 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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 | 569 |
| 570 group.add_argument( | 570 group.add_argument( |
| 571 '--output-json-list', type=os.path.realpath, | 571 '--output-json-list', type=os.path.realpath, |
| 572 help='Write a simple list of names from --steps into the given file.') | 572 help='Write a simple list of names from --steps into the given file.') |
| 573 group.add_argument( | 573 group.add_argument( |
| 574 '--collect-chartjson-data', | 574 '--collect-chartjson-data', |
| 575 action='store_true', | 575 action='store_true', |
| 576 help='Cache the chartjson output from each step for later use.') | 576 help='Cache the chartjson output from each step for later use.') |
| 577 group.add_argument( | 577 group.add_argument( |
| 578 '--output-chartjson-data', | 578 '--output-chartjson-data', |
| 579 default='', | |
| 580 type=os.path.realpath, | 579 type=os.path.realpath, |
| 581 help='Write out chartjson into the given file.') | 580 help='Write out chartjson into the given file.') |
| 582 # TODO(rnephew): Remove this when everything moves to new option in platform | 581 # TODO(rnephew): Remove this when everything moves to new option in platform |
| 583 # mode. | 582 # mode. |
| 584 group.add_argument( | 583 group.add_argument( |
| 585 '--get-output-dir-archive', metavar='FILENAME', type=os.path.realpath, | 584 '--get-output-dir-archive', metavar='FILENAME', type=os.path.realpath, |
| 586 help='Write the cached output directory archived by a step into the' | 585 help='Write the cached output directory archived by a step into the' |
| 587 ' given ZIP file.') | 586 ' given ZIP file.') |
| 588 group.add_argument( | 587 group.add_argument( |
| 589 '--output-dir-archive-path', metavar='FILENAME', type=os.path.realpath, | 588 '--output-dir-archive-path', metavar='FILENAME', type=os.path.realpath, |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 950 if e.is_infra_error: | 949 if e.is_infra_error: |
| 951 return constants.INFRA_EXIT_CODE | 950 return constants.INFRA_EXIT_CODE |
| 952 return constants.ERROR_EXIT_CODE | 951 return constants.ERROR_EXIT_CODE |
| 953 except: # pylint: disable=W0702 | 952 except: # pylint: disable=W0702 |
| 954 logging.exception('Unrecognized error occurred.') | 953 logging.exception('Unrecognized error occurred.') |
| 955 return constants.ERROR_EXIT_CODE | 954 return constants.ERROR_EXIT_CODE |
| 956 | 955 |
| 957 | 956 |
| 958 if __name__ == '__main__': | 957 if __name__ == '__main__': |
| 959 sys.exit(main()) | 958 sys.exit(main()) |
| OLD | NEW |