Show functional test request logging

* Failed test cases will show all captured logging
* Forward OS_*_CAPTURE environment variables along from tox to testr

Change-Id: Ice9a64d07bb77dd46fb1da6a8ffaa8fd85d5f38b
This commit is contained in:
Paul Glass 2015-08-18 20:20:19 +00:00
parent 3c62f20c1f
commit 2ce23fe37f
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,7 @@
import logging
logging.basicConfig(
filename='functional-tests.log',
filemode='w',
level=logging.DEBUG,
)

View File

@ -67,6 +67,10 @@ usedevelop = False
setenv = VIRTUAL_ENV={envdir}
OS_TEST_PATH=functionaltests/
passenv = TEMPEST_CONFIG
OS_STDOUT_CAPTURE
OS_STDERR_CAPTURE
OS_LOG_CAPTURE
OS_DEBUG
[testenv:venv]
commands = {posargs}