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

Unified 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: Fixes Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/crx_id/crx_id.py ('k') | tools/export_tarball/export_tarball.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dromaeo_benchmark_runner/dromaeo_benchmark_runner.py
diff --git a/tools/dromaeo_benchmark_runner/dromaeo_benchmark_runner.py b/tools/dromaeo_benchmark_runner/dromaeo_benchmark_runner.py
old mode 100644
new mode 100755
index 97c410c38923929831753dcb965d5ab63d1c30ab..15d8446c9d2dfa4656082daea103acb17132faf2
--- a/tools/dromaeo_benchmark_runner/dromaeo_benchmark_runner.py
+++ b/tools/dromaeo_benchmark_runner/dromaeo_benchmark_runner.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
-#
-# Copyright 2009 Google Inc. All Rights Reserved.
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
"""Dromaeo benchmark automation script.
@@ -48,6 +49,7 @@ import gdata.spreadsheet.service
max_spreadsheet_columns = 20
test_props = ['mean', 'error']
+
def ParseArguments():
parser = OptionParser()
parser.add_option("-b", "--browser",
@@ -257,7 +259,8 @@ def main():
spreadsheet_writer.WriteBrowserBenchmarkResults(test_name, test_data)
server.socket.close()
+ return 0
-if __name__ == '__main__':
- main()
+if __name__ == '__main__':
+ sys.exit(main())
« no previous file with comments | « tools/crx_id/crx_id.py ('k') | tools/export_tarball/export_tarball.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698