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

Side by Side Diff: mojo/devtools/common/mojo_benchmark

Issue 1405223009: mojo_benchmark: return non-zero exit code when --upload fails. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Runner for Mojo application benchmarks.""" 6 """Runner for Mojo application benchmarks."""
7 7
8 import argparse 8 import argparse
9 import logging 9 import logging
10 import os.path 10 import os.path
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 print 'benchmark failed: ' + benchmark_error 221 print 'benchmark failed: ' + benchmark_error
222 if some_measurements_failed: 222 if some_measurements_failed:
223 print 'some measurements failed' 223 print 'some measurements failed'
224 print 'output: ' 224 print 'output: '
225 print '-' * 72 225 print '-' * 72
226 print output 226 print output
227 print '-' * 72 227 print '-' * 72
228 exit_code = 1 228 exit_code = 1
229 229
230 if script_args.upload: 230 if script_args.upload:
231 perf_dashboard.upload_chart_data( 231 if not perf_dashboard.upload_chart_data(
232 script_args.master_name, script_args.bot_name, 232 script_args.master_name, script_args.bot_name,
233 script_args.test_name, script_args.builder_name, 233 script_args.test_name, script_args.builder_name,
234 script_args.build_number, chart_data_recorder.get_chart_data(), 234 script_args.build_number, chart_data_recorder.get_chart_data(),
235 script_args.server_url, script_args.dry_run) 235 script_args.server_url, script_args.dry_run):
236 exit_code = 1
236 237
237 return exit_code 238 return exit_code
238 239
239 if __name__ == '__main__': 240 if __name__ == '__main__':
240 sys.exit(main()) 241 sys.exit(main())
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