From e44c7d54b40f00bcf7e8ca384e77e763fd170d2e Mon Sep 17 00:00:00 2001 From: David Donovan Riddle Date: Tue, 14 Jul 2015 16:42:41 -0500 Subject: Fix issue #265 - Pass LD_LIBRARY_PATH by default This fix passes the LD_LIBRARY_PATH environment variable by default. This was done to support RedHat Software Collections. --- tests/test_config.py | 1 + tox/config.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.1