| 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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 | 703 |
| 704 runner_factory, tests, devices = perf_setup.Setup( | 704 runner_factory, tests, devices = perf_setup.Setup( |
| 705 perf_options, active_devices) | 705 perf_options, active_devices) |
| 706 | 706 |
| 707 # shard=False means that each device will get the full list of tests | 707 # shard=False means that each device will get the full list of tests |
| 708 # and then each one will decide their own affinity. | 708 # and then each one will decide their own affinity. |
| 709 # shard=True means each device will pop the next test available from a queue, | 709 # shard=True means each device will pop the next test available from a queue, |
| 710 # which increases throughput but have no affinity. | 710 # which increases throughput but have no affinity. |
| 711 results, _ = test_dispatcher.RunTests( | 711 results, _ = test_dispatcher.RunTests( |
| 712 tests, runner_factory, devices, shard=False, test_timeout=None, | 712 tests, runner_factory, devices, shard=False, test_timeout=None, |
| 713 num_retries=args.num_retries) | 713 num_retries=args.num_retries, blacklist_file=args.blacklist_file) |
| 714 | 714 |
| 715 report_results.LogFull( | 715 report_results.LogFull( |
| 716 results=results, | 716 results=results, |
| 717 test_type='Perf', | 717 test_type='Perf', |
| 718 test_package='Perf') | 718 test_package='Perf') |
| 719 | 719 |
| 720 if args.json_results_file: | 720 if args.json_results_file: |
| 721 json_results.GenerateJsonResultsFile([results], args.json_results_file) | 721 json_results.GenerateJsonResultsFile([results], args.json_results_file) |
| 722 | 722 |
| 723 if perf_options.single_step: | 723 if perf_options.single_step: |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 if e.is_infra_error: | 977 if e.is_infra_error: |
| 978 return constants.INFRA_EXIT_CODE | 978 return constants.INFRA_EXIT_CODE |
| 979 return constants.ERROR_EXIT_CODE | 979 return constants.ERROR_EXIT_CODE |
| 980 except: # pylint: disable=W0702 | 980 except: # pylint: disable=W0702 |
| 981 logging.exception('Unrecognized error occurred.') | 981 logging.exception('Unrecognized error occurred.') |
| 982 return constants.ERROR_EXIT_CODE | 982 return constants.ERROR_EXIT_CODE |
| 983 | 983 |
| 984 | 984 |
| 985 if __name__ == '__main__': | 985 if __name__ == '__main__': |
| 986 sys.exit(main()) | 986 sys.exit(main()) |
| OLD | NEW |