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

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

Issue 787803004: Update from https://crrev.com/307664 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase. Created 6 years 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
« no previous file with comments | « build/android/pylib/gtest/gtest_config.py ('k') | build/build-ctags.sh » ('j') | 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 import argparse 9 import argparse
10 import collections 10 import collections
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 with environment_factory.CreateEnvironment(args, parser.error) as env: 857 with environment_factory.CreateEnvironment(args, parser.error) as env:
858 with test_instance_factory.CreateTestInstance(args, parser.error) as test: 858 with test_instance_factory.CreateTestInstance(args, parser.error) as test:
859 with test_run_factory.CreateTestRun( 859 with test_run_factory.CreateTestRun(
860 args, env, test, parser.error) as test_run: 860 args, env, test, parser.error) as test_run:
861 results = test_run.RunTests() 861 results = test_run.RunTests()
862 862
863 report_results.LogFull( 863 report_results.LogFull(
864 results=results, 864 results=results,
865 test_type=test.TestType(), 865 test_type=test.TestType(),
866 test_package=test_run.TestPackage(), 866 test_package=test_run.TestPackage(),
867 annotation=args.annotations, 867 annotation=getattr(args, 'annotations', None),
868 flakiness_server=args.flakiness_dashboard_server) 868 flakiness_server=getattr(args, 'flakiness_dashboard_server', None))
869 869
870 if args.json_results_file: 870 if args.json_results_file:
871 json_results.GenerateJsonResultsFile( 871 json_results.GenerateJsonResultsFile(
872 results, args.json_results_file) 872 results, args.json_results_file)
873 873
874 return results 874 return results
875 875
876 876
877 CommandConfigTuple = collections.namedtuple( 877 CommandConfigTuple = collections.namedtuple(
878 'CommandConfigTuple', 878 'CommandConfigTuple',
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 subparser = command_parsers.add_parser( 922 subparser = command_parsers.add_parser(
923 test_type, usage='%(prog)s [options]', help=config.help_txt) 923 test_type, usage='%(prog)s [options]', help=config.help_txt)
924 config.add_options_func(subparser) 924 config.add_options_func(subparser)
925 925
926 args = parser.parse_args() 926 args = parser.parse_args()
927 return RunTestsCommand(args, parser) 927 return RunTestsCommand(args, parser)
928 928
929 929
930 if __name__ == '__main__': 930 if __name__ == '__main__':
931 sys.exit(main()) 931 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/pylib/gtest/gtest_config.py ('k') | build/build-ctags.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698