| OLD | NEW |
| 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 Loading... |
| 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()) |
| OLD | NEW |