OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 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 """A tool that uploads data to the performance dashboard.""" | 6 """A tool that uploads data to the performance dashboard.""" |
7 | 7 |
8 import argparse | 8 import argparse |
9 import httplib | 9 import httplib |
10 import json | 10 import json |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 result = UploadPerfData(args.master_name, args.perf_id, args.test_name, | 183 result = UploadPerfData(args.master_name, args.perf_id, args.test_name, |
184 args.builder_name, args.build_number, args.revision, | 184 args.builder_name, args.build_number, args.revision, |
185 args.perf_data, args.point_id, args.dry_run, | 185 args.perf_data, args.point_id, args.dry_run, |
186 args.testing_dashboard) | 186 args.testing_dashboard) |
187 return 0 if result else 1 | 187 return 0 if result else 1 |
188 | 188 |
189 | 189 |
190 if __name__ == '__main__': | 190 if __name__ == '__main__': |
191 sys.exit(main()) | 191 sys.exit(main()) |
OLD | NEW |