Index: chrome/test/functional/pyauto_functional.py |
diff --git a/chrome/test/functional/pyauto_functional.py b/chrome/test/functional/pyauto_functional.py |
index 1937a089e9559ab2502ad89271282f2943619d30..2fe5fb180370dadaad9bcb2700a04ed749f464cb 100755 |
--- a/chrome/test/functional/pyauto_functional.py |
+++ b/chrome/test/functional/pyauto_functional.py |
@@ -77,7 +77,13 @@ def RunWithCorrectPythonIfNecessary(): |
RunAgain() |
-RunWithCorrectPythonIfNecessary() |
+# Do not attempt to figure out python versions if |
+# DO_NOT_RESTART_PYTHON_FOR_PYAUTO is set. |
+if os.getenv('DO_NOT_RESTART_PYTHON_FOR_PYAUTO') is None: |
+ RunWithCorrectPythonIfNecessary() |
+else: |
+ print 'Will not try to restart with the correct version of python '\ |
+ 'as DO_NOT_RESTART_PYTHON_FOR_PYAUTO is set.' |
try: |