summaryrefslogtreecommitdiff
path: root/tox
diff options
context:
space:
mode:
authormazzucco <devnull@localhost>2015-06-18 10:50:48 +0100
committermazzucco <devnull@localhost>2015-06-18 10:50:48 +0100
commite137fb2b2336f6c9f20e4789527b82cd89e502b2 (patch)
treeee8cd0a4e422646dbdecca77184903431833e5d1 /tox
parentc29c60b2d5d422b50882c0788e17a8f6d7fe1f56 (diff)
downloadtox-e137fb2b2336f6c9f20e4789527b82cd89e502b2.tar.gz
hpk42/tox/issue/259/passenv-statement-should-accept-multi-line
Diffstat (limited to 'tox')
-rw-r--r--tox/config.py5
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