summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Donovan Riddle <ddriddle@illinois.edu>2015-07-14 16:42:41 -0500
committerDavid Donovan Riddle <ddriddle@illinois.edu>2015-07-14 16:42:41 -0500
commite44c7d54b40f00bcf7e8ca384e77e763fd170d2e (patch)
tree8fcf247304631fbedb4c956292651f60af9f160f
parent650f5ee0b7fb6965ce0adcd1e3b16e8804780d4c (diff)
downloadtox-fix_issue_265.tar.gz
Fix issue #265 - Pass LD_LIBRARY_PATH by defaultfix_issue_265
This fix passes the LD_LIBRARY_PATH environment variable by default. This was done to support RedHat Software Collections.
-rw-r--r--tests/test_config.py1
-rw-r--r--tox/config.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index 8aa7abd..4bdba50 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -721,6 +721,7 @@ class TestConfigTestEnv:
assert "PATH" in envconfig.passenv
assert "PIP_INDEX_URL" in envconfig.passenv
assert "LANG" in envconfig.passenv
+ assert "LD_LIBRARY_PATH" in envconfig.passenv
assert "A123A" in envconfig.passenv
assert "A123B" in envconfig.passenv
diff --git a/tox/config.py b/tox/config.py
index 092de2a..d68d276 100644
--- a/tox/config.py
+++ b/tox/config.py
@@ -386,7 +386,7 @@ def tox_addoption(parser):
itertools.chain.from_iterable(
[x.split(' ') for x in value]))
- passenv = set(["PATH", "PIP_INDEX_URL", "LANG"])
+ passenv = set(["PATH", "PIP_INDEX_URL", "LANG", "LD_LIBRARY_PATH"])
# read in global passenv settings
p = os.environ.get("TOX_TESTENV_PASSENV", None)