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 collections | 9 import collections |
10 import logging | 10 import logging |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 num_retries=options.num_retries) | 642 num_retries=options.num_retries) |
643 | 643 |
644 report_results.LogFull( | 644 report_results.LogFull( |
645 results=results, | 645 results=results, |
646 test_type='Perf', | 646 test_type='Perf', |
647 test_package='Perf') | 647 test_package='Perf') |
648 | 648 |
649 if perf_options.single_step: | 649 if perf_options.single_step: |
650 return perf_test_runner.PrintTestOutput('single_step') | 650 return perf_test_runner.PrintTestOutput('single_step') |
651 | 651 |
| 652 perf_test_runner.PrintSummary(tests) |
| 653 |
652 # Always return 0 on the sharding stage. Individual tests exit_code | 654 # Always return 0 on the sharding stage. Individual tests exit_code |
653 # will be returned on the print_step stage. | 655 # will be returned on the print_step stage. |
654 return 0 | 656 return 0 |
655 | 657 |
656 | 658 |
657 def _GetAttachedDevices(test_device=None): | 659 def _GetAttachedDevices(test_device=None): |
658 """Get all attached devices. | 660 """Get all attached devices. |
659 | 661 |
660 Args: | 662 Args: |
661 test_device: Name of a specific device to use. | 663 test_device: Name of a specific device to use. |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 | 800 |
799 def main(argv): | 801 def main(argv): |
800 signal.signal(signal.SIGUSR1, DumpThreadStacks) | 802 signal.signal(signal.SIGUSR1, DumpThreadStacks) |
801 option_parser = command_option_parser.CommandOptionParser( | 803 option_parser = command_option_parser.CommandOptionParser( |
802 commands_dict=VALID_COMMANDS) | 804 commands_dict=VALID_COMMANDS) |
803 return command_option_parser.ParseAndExecute(option_parser) | 805 return command_option_parser.ParseAndExecute(option_parser) |
804 | 806 |
805 | 807 |
806 if __name__ == '__main__': | 808 if __name__ == '__main__': |
807 sys.exit(main(sys.argv)) | 809 sys.exit(main(sys.argv)) |
OLD | NEW |