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

Unified Diff: chrome/test/pyautolib/chromeos/enable_testing.py

Issue 8680018: Fix python scripts in src/chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright 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 | « chrome/test/pyautolib/chromeos/chromeos_utils.py ('k') | chrome/test/pyautolib/chromeos/file_browser.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/chromeos/enable_testing.py
diff --git a/chrome/test/pyautolib/chromeos/enable_testing.py b/chrome/test/pyautolib/chromeos/enable_testing.py
old mode 100644
new mode 100755
index 5191cebd529dc25295d05d9aa3a5319d8e6a3356..373c7646c48e08838f5831b97ec6a213e5d61f6b
--- a/chrome/test/pyautolib/chromeos/enable_testing.py
+++ b/chrome/test/pyautolib/chromeos/enable_testing.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.
@@ -19,6 +18,7 @@ Usage:
import dbus
import optparse
import os
+import sys
class EnableChromeTestingOnChromeOS(object):
@@ -46,8 +46,8 @@ class EnableChromeTestingOnChromeOS(object):
self.SESSION_MANAGER_PATH),
self.SESSION_MANAGER_INTERFACE)
print manager.EnableChromeTesting(True, self._options.extra_chrome_flags)
+ return 0
if __name__ == '__main__':
- enabler = EnableChromeTestingOnChromeOS()
- enabler.Run()
+ sys.exit(EnableChromeTestingOnChromeOS().Run())
« no previous file with comments | « chrome/test/pyautolib/chromeos/chromeos_utils.py ('k') | chrome/test/pyautolib/chromeos/file_browser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698