From 26cf2237fc27f98bd05eaf4648acfdb36d685ff1 Mon Sep 17 00:00:00 2001 From: Trevor McKay Date: Thu, 11 Jun 2015 10:19:06 -0400 Subject: [PATCH] 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 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index d7a99187..da41e94e 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/