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

Unified Diff: tools/valgrind/chrome_tests.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/valgrind/asan/chrome_tests.py ('k') | tools/valgrind/common.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/valgrind/chrome_tests.py
diff --git a/tools/valgrind/chrome_tests.py b/tools/valgrind/chrome_tests.py
index c068d43afe72a9b297e5ed284bf3823a0810c6fb..5e7ce3e95be874c7a7eec31a3310b3a71815acce 100755
--- a/tools/valgrind/chrome_tests.py
+++ b/tools/valgrind/chrome_tests.py
@@ -1,10 +1,8 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# 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.
-# chrome_tests.py
-
''' Runs various chrome tests through valgrind_test.py.'''
import glob
@@ -459,7 +457,8 @@ class ChromeTests:
"views": TestViews, "views_unittests": TestViews,
}
-def _main(_):
+
+def _main():
parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> "
"[-t <test> ...]")
parser.disable_interspersed_args()
@@ -509,5 +508,4 @@ def _main(_):
if __name__ == "__main__":
- ret = _main(sys.argv)
- sys.exit(ret)
+ sys.exit(_main())
« no previous file with comments | « tools/valgrind/asan/chrome_tests.py ('k') | tools/valgrind/common.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698