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

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

Issue 13496004: [Android] Set flags for uiautomator based on annotations not test name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « build/android/run_instrumentation_tests.py ('k') | 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 (c) 2013 The Chromium Authors. All rights reserved. 3 # Copyright (c) 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 both the Python and Java UIAutomator tests.""" 7 """Runs both the Python and Java UIAutomator tests."""
8 8
9 import optparse 9 import optparse
10 import os 10 import os
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 all_results = base_test_result.TestRunResults() 45 all_results = base_test_result.TestRunResults()
46 46
47 if options.run_java_tests: 47 if options.run_java_tests:
48 all_results.AddTestRunResults(dispatch.Dispatch(options)) 48 all_results.AddTestRunResults(dispatch.Dispatch(options))
49 if options.run_python_tests: 49 if options.run_python_tests:
50 all_results.AddTestRunResults(run_python_tests.DispatchPythonTests(options)) 50 all_results.AddTestRunResults(run_python_tests.DispatchPythonTests(options))
51 51
52 report_results.LogFull( 52 report_results.LogFull(
53 results=all_results, 53 results=all_results,
54 test_type='UIAutomator', 54 test_type='UIAutomator',
55 test_package=os.path.basename(options.uiautomator_jar), 55 test_package=os.path.basename(options.test_jar),
56 annotation=options.annotation, 56 annotation=options.annotation,
57 build_type=options.build_type, 57 build_type=options.build_type,
58 flakiness_server=options.flakiness_dashboard_server) 58 flakiness_server=options.flakiness_dashboard_server)
59 59
60 return len(all_results.GetAllBroken()) 60 return len(all_results.GetNotPass())
61 61
62 62
63 def main(argv): 63 def main(argv):
64 option_parser = optparse.OptionParser() 64 option_parser = optparse.OptionParser()
65 test_options_parser.AddUIAutomatorOptions(option_parser) 65 test_options_parser.AddUIAutomatorOptions(option_parser)
66 options, args = option_parser.parse_args(argv) 66 options, args = option_parser.parse_args(argv)
67 test_options_parser.ValidateUIAutomatorOptions(option_parser, options, args) 67 test_options_parser.ValidateUIAutomatorOptions(option_parser, options, args)
68 68
69 run_tests_helper.SetLogLevel(options.verbose_count) 69 run_tests_helper.SetLogLevel(options.verbose_count)
70 ret = 1 70 ret = 1
71 try: 71 try:
72 ret = DispatchUIAutomatorTests(options) 72 ret = DispatchUIAutomatorTests(options)
73 finally: 73 finally:
74 buildbot_report.PrintStepResultIfNeeded(options, ret) 74 buildbot_report.PrintStepResultIfNeeded(options, ret)
75 return ret 75 return ret
76 76
77 77
78 if __name__ == '__main__': 78 if __name__ == '__main__':
79 sys.exit(main(sys.argv)) 79 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « build/android/run_instrumentation_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698