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

Unified Diff: presubmit_support.py

Issue 147035: Change RunPythonUnitTests() to run the unit tests in a separate process. (Closed)
Patch Set: Created 11 years, 6 months 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
Index: presubmit_support.py
diff --git a/presubmit_support.py b/presubmit_support.py
index 88a535fde05f3a6dd00564de19718edddd58d22b..8586a48712dd9015d1743fb764bfb38224b686ac 100755
--- a/presubmit_support.py
+++ b/presubmit_support.py
@@ -197,6 +197,10 @@ class InputApi(object):
self.unittest = unittest
self.urllib2 = urllib2
+ # To easily fork python.
+ self.python_executable = sys.executable
+ self.environ = os.environ
+
# InputApi.platform is the platform you're currently running on.
self.platform = sys.platform

Powered by Google App Engine
This is Rietveld 408576698