Index: chrome/test/pyautolib/perf_snapshot.py |
diff --git a/chrome/test/pyautolib/perf_snapshot.py b/chrome/test/pyautolib/perf_snapshot.py |
old mode 100644 |
new mode 100755 |
index 2b5d15e6dafd91bffd3fd9162704ddd3e18bdd82..fff9333a0f15f5317cb1d56ac3e2b499066770f7 |
--- a/chrome/test/pyautolib/perf_snapshot.py |
+++ b/chrome/test/pyautolib/perf_snapshot.py |
@@ -1,5 +1,4 @@ |
-#!/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. |
@@ -870,7 +869,8 @@ def main(): |
snapshotter.SetInteractiveMode() |
snapshotter.HeapSnapshot() |
+ return 0 |
if __name__ == '__main__': |
- main() |
+ sys.exit(main()) |