Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(516)

Side by Side Diff: build/android/test_runner.py

Issue 23285002: Android: removes buildtype following crrev.com/217855 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 TODO(gkanwar): 9 TODO(gkanwar):
10 * Add options to run Monkey tests. 10 * Add options to run Monkey tests.
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 return perf_test_runner.PrintTestOutput(perf_options.print_step) 590 return perf_test_runner.PrintTestOutput(perf_options.print_step)
591 591
592 runner_factory, tests = perf_setup.Setup(perf_options) 592 runner_factory, tests = perf_setup.Setup(perf_options)
593 593
594 results, _ = test_dispatcher.RunTests( 594 results, _ = test_dispatcher.RunTests(
595 tests, runner_factory, False, None, shard=True, test_timeout=None) 595 tests, runner_factory, False, None, shard=True, test_timeout=None)
596 596
597 report_results.LogFull( 597 report_results.LogFull(
598 results=results, 598 results=results,
599 test_type='Perf', 599 test_type='Perf',
600 test_package='Perf', 600 test_package='Perf')
601 build_type=options.build_type)
602 # Always return 0 on the sharding stage. Individual tests exit_code 601 # Always return 0 on the sharding stage. Individual tests exit_code
603 # will be returned on the print_step stage. 602 # will be returned on the print_step stage.
604 return 0 603 return 0
605 604
606 605
607 def RunTestsCommand(command, options, args, option_parser): 606 def RunTestsCommand(command, options, args, option_parser):
608 """Checks test type and dispatches to the appropriate function. 607 """Checks test type and dispatches to the appropriate function.
609 608
610 Args: 609 Args:
611 command: String indicating the command that was received to trigger 610 command: String indicating the command that was received to trigger
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 option_parser.error('Invalid command.') 738 option_parser.error('Invalid command.')
740 command = argv[1] 739 command = argv[1]
741 VALID_COMMANDS[command].add_options_func(option_parser) 740 VALID_COMMANDS[command].add_options_func(option_parser)
742 options, args = option_parser.parse_args(argv) 741 options, args = option_parser.parse_args(argv)
743 return VALID_COMMANDS[command].run_command_func( 742 return VALID_COMMANDS[command].run_command_func(
744 command, options, args, option_parser) 743 command, options, args, option_parser)
745 744
746 745
747 if __name__ == '__main__': 746 if __name__ == '__main__':
748 sys.exit(main(sys.argv)) 747 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698