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

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

Issue 141223002: Move the android library loader from content to base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix final nits Created 6 years, 10 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
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 import collections 9 import collections
10 import logging 10 import logging
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 """Subcommand of RunTestsCommands which runs linker tests.""" 531 """Subcommand of RunTestsCommands which runs linker tests."""
532 runner_factory, tests = linker_setup.Setup(options, devices) 532 runner_factory, tests = linker_setup.Setup(options, devices)
533 533
534 results, exit_code = test_dispatcher.RunTests( 534 results, exit_code = test_dispatcher.RunTests(
535 tests, runner_factory, devices, shard=True, test_timeout=60, 535 tests, runner_factory, devices, shard=True, test_timeout=60,
536 num_retries=options.num_retries) 536 num_retries=options.num_retries)
537 537
538 report_results.LogFull( 538 report_results.LogFull(
539 results=results, 539 results=results,
540 test_type='Linker test', 540 test_type='Linker test',
541 test_package='ContentLinkerTest') 541 test_package='ChromiumLinkerTest')
542 542
543 return exit_code 543 return exit_code
544 544
545 545
546 def _RunInstrumentationTests(options, error_func, devices): 546 def _RunInstrumentationTests(options, error_func, devices):
547 """Subcommand of RunTestsCommands which runs instrumentation tests.""" 547 """Subcommand of RunTestsCommands which runs instrumentation tests."""
548 instrumentation_options = ProcessInstrumentationOptions(options, error_func) 548 instrumentation_options = ProcessInstrumentationOptions(options, error_func)
549 549
550 if len(devices) > 1 and options.wait_for_debugger: 550 if len(devices) > 1 and options.wait_for_debugger:
551 logging.warning('Debugger can not be sharded, using first available device') 551 logging.warning('Debugger can not be sharded, using first available device')
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 797
798 def main(): 798 def main():
799 signal.signal(signal.SIGUSR1, DumpThreadStacks) 799 signal.signal(signal.SIGUSR1, DumpThreadStacks)
800 option_parser = command_option_parser.CommandOptionParser( 800 option_parser = command_option_parser.CommandOptionParser(
801 commands_dict=VALID_COMMANDS) 801 commands_dict=VALID_COMMANDS)
802 return command_option_parser.ParseAndExecute(option_parser) 802 return command_option_parser.ParseAndExecute(option_parser)
803 803
804 804
805 if __name__ == '__main__': 805 if __name__ == '__main__':
806 sys.exit(main()) 806 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698