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

Side by Side Diff: tools/dromaeo_benchmark_runner/dromaeo_benchmark_runner.py

Issue 8678023: Fix python scripts in src/tools/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Copyright 2009 Google Inc. All Rights Reserved. 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
4 5
5 """Dromaeo benchmark automation script. 6 """Dromaeo benchmark automation script.
6 7
7 Script runs dromaeo tests in browsers specified by --browser switch and saves 8 Script runs dromaeo tests in browsers specified by --browser switch and saves
8 results to a spreadsheet on docs.google.com. 9 results to a spreadsheet on docs.google.com.
9 10
10 Prerequisites: 11 Prerequisites:
11 1. Install Google Data APIs Python Client Library from 12 1. Install Google Data APIs Python Client Library from
12 http://code.google.com/p/gdata-python-client. 13 http://code.google.com/p/gdata-python-client.
13 2. Checkout Dromaeo benchmark from 14 2. Checkout Dromaeo benchmark from
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 benchmark_results.ProcessBrowserPostData(server.post_data) 251 benchmark_results.ProcessBrowserPostData(server.post_data)
251 # Kill browser. 252 # Kill browser.
252 KillProcessByName(browser) 253 KillProcessByName(browser)
253 browser_process.wait() 254 browser_process.wait()
254 255
255 # Insert test results into spreadsheet. 256 # Insert test results into spreadsheet.
256 for (test_name, test_data) in benchmark_results.data.iteritems(): 257 for (test_name, test_data) in benchmark_results.data.iteritems():
257 spreadsheet_writer.WriteBrowserBenchmarkResults(test_name, test_data) 258 spreadsheet_writer.WriteBrowserBenchmarkResults(test_name, test_data)
258 259
259 server.socket.close() 260 server.socket.close()
260 261
Alexander Potapenko 2011/11/24 07:53:02 2 blank lines here
261 if __name__ == '__main__': 262 if __name__ == '__main__':
262 main() 263 main()
263
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698