| 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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 """Subcommand of RunTestsCommands which runs linker tests.""" | 532 """Subcommand of RunTestsCommands which runs linker tests.""" |
| 533 runner_factory, tests = linker_setup.Setup(options, devices) | 533 runner_factory, tests = linker_setup.Setup(options, devices) |
| 534 | 534 |
| 535 results, exit_code = test_dispatcher.RunTests( | 535 results, exit_code = test_dispatcher.RunTests( |
| 536 tests, runner_factory, devices, shard=True, test_timeout=60, | 536 tests, runner_factory, devices, shard=True, test_timeout=60, |
| 537 num_retries=options.num_retries) | 537 num_retries=options.num_retries) |
| 538 | 538 |
| 539 report_results.LogFull( | 539 report_results.LogFull( |
| 540 results=results, | 540 results=results, |
| 541 test_type='Linker test', | 541 test_type='Linker test', |
| 542 test_package='ContentLinkerTest') | 542 test_package='ChromiumLinkerTest') |
| 543 | 543 |
| 544 return exit_code | 544 return exit_code |
| 545 | 545 |
| 546 | 546 |
| 547 def _RunInstrumentationTests(options, error_func, devices): | 547 def _RunInstrumentationTests(options, error_func, devices): |
| 548 """Subcommand of RunTestsCommands which runs instrumentation tests.""" | 548 """Subcommand of RunTestsCommands which runs instrumentation tests.""" |
| 549 instrumentation_options = ProcessInstrumentationOptions(options, error_func) | 549 instrumentation_options = ProcessInstrumentationOptions(options, error_func) |
| 550 | 550 |
| 551 if len(devices) > 1 and options.wait_for_debugger: | 551 if len(devices) > 1 and options.wait_for_debugger: |
| 552 logging.warning('Debugger can not be sharded, using first available device') | 552 logging.warning('Debugger can not be sharded, using first available device') |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 | 798 |
| 799 def main(argv): | 799 def main(argv): |
| 800 signal.signal(signal.SIGUSR1, DumpThreadStacks) | 800 signal.signal(signal.SIGUSR1, DumpThreadStacks) |
| 801 option_parser = command_option_parser.CommandOptionParser( | 801 option_parser = command_option_parser.CommandOptionParser( |
| 802 commands_dict=VALID_COMMANDS) | 802 commands_dict=VALID_COMMANDS) |
| 803 return command_option_parser.ParseAndExecute(option_parser) | 803 return command_option_parser.ParseAndExecute(option_parser) |
| 804 | 804 |
| 805 | 805 |
| 806 if __name__ == '__main__': | 806 if __name__ == '__main__': |
| 807 sys.exit(main(sys.argv)) | 807 sys.exit(main(sys.argv)) |
| OLD | NEW |