From c19dd499f0fff9470fac86c833d43dfb1af704dc Mon Sep 17 00:00:00 2001 From: melanie witt Date: Sat, 21 May 2016 01:44:58 +0000 Subject: [PATCH] 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 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 89bcad806532..463e26bf9128 100644 --- a/tox.ini +++ b/tox.ini @@ -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.