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

Unified Diff: testing/test_env.py

Issue 17702004: Only remove CHROME_SANDBOX_ENV from env if it is present. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/test_env.py
diff --git a/testing/test_env.py b/testing/test_env.py
index a65b34b52157045a817f054914c2b73609c2c381..ec98a11ce61e82670b1788a16a08f3b0c6f9e57e 100755
--- a/testing/test_env.py
+++ b/testing/test_env.py
@@ -48,7 +48,8 @@ def enable_sandbox_if_required(env, verbose=False):
print ' %s' % CHROME_SANDBOX_ENV
# The variable should be removed from the environment, making
# the variable empty silently disables the sandbox.
- env.pop(CHROME_SANDBOX_ENV)
+ if env.get(CHROME_SANDBOX_ENV):
+ env.pop(CHROME_SANDBOX_ENV)
def fix_python_path(cmd):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698