Pass OS_DEBUG to the tox test environment

The StandardLogging fixture defaults to log level INFO and has
the ability to log at level DEBUG if the OS_DEBUG environment
variable is set to a true value. Let tox copy OS_DEBUG to the
test environment to allow debug log capture for a command line
like:

  OS_DEBUG=True tox -epy27

Change-Id: Ibe51653f652c99aee56f702be571130cbb7f913d
This commit is contained in:
melanie witt 2016-05-21 01:44:58 +00:00
parent cd95c6527a
commit c19dd499f0

View File

@ -18,7 +18,7 @@ deps = -r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
bash tools/pretty_tox.sh '{posargs}'
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY OS_DEBUG
# there is also secret magic in pretty_tox.sh which lets you run in a fail only
# mode. To do this define the TRACE_FAILONLY environmental variable.