summaryrefslogtreecommitdiffstats
path: root/tools/valgrind/chrome_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/valgrind/chrome_tests.py')
-rwxr-xr-xtools/valgrind/chrome_tests.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/valgrind/chrome_tests.py b/tools/valgrind/chrome_tests.py
index c068d43..5e7ce3e 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())