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()) |