diff options
author | mazzucco <devnull@localhost> | 2015-06-18 10:50:48 +0100 |
---|---|---|
committer | mazzucco <devnull@localhost> | 2015-06-18 10:50:48 +0100 |
commit | e137fb2b2336f6c9f20e4789527b82cd89e502b2 (patch) | |
tree | ee8cd0a4e422646dbdecca77184903431833e5d1 /tox | |
parent | c29c60b2d5d422b50882c0788e17a8f6d7fe1f56 (diff) | |
download | tox-e137fb2b2336f6c9f20e4789527b82cd89e502b2.tar.gz |
hpk42/tox/issue/259/passenv-statement-should-accept-multi-line
Diffstat (limited to 'tox')
-rw-r--r-- | tox/config.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tox/config.py b/tox/config.py index 52e0dbc..75b9679 100644 --- a/tox/config.py +++ b/tox/config.py @@ -387,6 +387,11 @@ def tox_addoption(parser): help="list of X=Y lines with environment variable settings") def passenv(testenv_config, value): + if len(value) == 1 and "\n" in value[0]: + # If we have a list of 1 element that contains new lines, + # passenv has been specified as a multi line list. + value = value[0].split("\n") + passenv = set(["PATH", "PIP_INDEX_URL", "LANG"]) # we ensure that tmp directory settings are passed on |