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

Side by Side Diff: tools/telemetry/telemetry/unittest_util/run_tests.py

Issue 1152763005: [Telemetry] Always printout test's timing info. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« 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 # Copyright 2012 The Chromium Authors. All rights reserved. 1 # Copyright 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 import sys 4 import sys
5 5
6 from telemetry.core import browser_finder 6 from telemetry.core import browser_finder
7 from telemetry.core import browser_finder_exceptions 7 from telemetry.core import browser_finder_exceptions
8 from telemetry.core import browser_options 8 from telemetry.core import browser_options
9 from telemetry.core import command_line 9 from telemetry.core import command_line
10 from telemetry.core import device_finder 10 from telemetry.core import device_finder
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 runner.args.jobs = max(int(args.jobs) // 4, 1) 110 runner.args.jobs = max(int(args.jobs) // 4, 1)
111 else: 111 else:
112 runner.args.jobs = max(int(args.jobs) // 2, 1) 112 runner.args.jobs = max(int(args.jobs) // 2, 1)
113 113
114 runner.args.metadata = args.metadata 114 runner.args.metadata = args.metadata
115 runner.args.passthrough = args.passthrough 115 runner.args.passthrough = args.passthrough
116 runner.args.path = args.path 116 runner.args.path = args.path
117 runner.args.retry_limit = args.retry_limit 117 runner.args.retry_limit = args.retry_limit
118 runner.args.test_results_server = args.test_results_server 118 runner.args.test_results_server = args.test_results_server
119 runner.args.test_type = args.test_type 119 runner.args.test_type = args.test_type
120 runner.args.timing = args.timing 120 # Always print out test's timing info.
121 runner.args.timing = True
121 runner.args.top_level_dir = args.top_level_dir 122 runner.args.top_level_dir = args.top_level_dir
122 runner.args.verbose = args.verbosity 123 runner.args.verbose = args.verbosity
123 runner.args.write_full_results_to = args.write_full_results_to 124 runner.args.write_full_results_to = args.write_full_results_to
124 runner.args.write_trace_to = args.write_trace_to 125 runner.args.write_trace_to = args.write_trace_to
125 126
126 runner.args.path.append(util.GetUnittestDataDir()) 127 runner.args.path.append(util.GetUnittestDataDir())
127 128
128 runner.classifier = GetClassifier(args, possible_browser) 129 runner.classifier = GetClassifier(args, possible_browser)
129 runner.context = args 130 runner.context = args
130 runner.setup_fn = _SetUpProcess 131 runner.setup_fn = _SetUpProcess
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 176
176 177
177 def _TearDownProcess(child, context): # pylint: disable=W0613 178 def _TearDownProcess(child, context): # pylint: disable=W0613
178 browser_test_case.teardown_browser() 179 browser_test_case.teardown_browser()
179 options_for_unittests.Pop() 180 options_for_unittests.Pop()
180 181
181 182
182 if __name__ == '__main__': 183 if __name__ == '__main__':
183 ret_code = RunTestsCommand.main() 184 ret_code = RunTestsCommand.main()
184 sys.exit(ret_code) 185 sys.exit(ret_code)
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