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
This commit is contained in:
Trevor McKay
2015-06-11 10:19:06 -04:00
parent 963d8ce6bb
commit 26cf2237fc

View File

@@ -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/