summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorTrevor McKay <tmckay@redhat.com>2015-06-11 10:19:06 -0400
committerTrevor McKay <tmckay@redhat.com>2015-06-11 12:07:42 -0400
commit26cf2237fc27f98bd05eaf4648acfdb36d685ff1 (patch)
tree1b4c174abb74db13e7bf9a72b20a2bee8b059b6a /tox.ini
parent963d8ce6bbdfa151defe6702c8d0c31300607c03 (diff)
downloadpython-saharaclient-26cf2237fc27f98bd05eaf4648acfdb36d685ff1.tar.gz
Pass OpenStack environment variables to client tests
tox 2 does not pass the environment by default, this is a change from tox 1.6. Instead, environment variables may be passed by means of the "passenv" variable in tox.ini. This mechanism supports globbing, so "OS_*" can be used to set the necessary environment variables for the python-saharaclient. Change-Id: Ibe9055dd4d4bc1a243db5198a9e5e35e5f93f628
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini1
1 files changed, 1 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index d7a9918..da41e94 100644
--- a/tox.ini
+++ b/tox.ini
@@ -23,6 +23,7 @@ setenv =
commands = bash tools/pretty_tox.sh "{posargs}"
[testenv:functional]
+passenv = OS_*
setenv =
VIRTUAL_ENV={envdir}
DISCOVER_DIRECTORY=saharaclient/tests/functional/