Use OS_LOG_CAPTURE to get log output

For reasons I'm not sure I want to think about, *some* tests have
their logging output captured without this environment variable, but
most don't.  This makes it really hard to debug failures, but I think
I never noticed this before because of the aforementioned case that
some tests capture the debug output anyway...

Anyway, capturing the log output seems like the right thing to do.  I
confirmed by putting in a false assert failing all tests that we get
the debug log output from *all* tests wit this.

Change-Id: I9d255436ab3fd303ea8a0d58b00e15cddb57de08
This commit is contained in:
Ian Wienand 2016-09-06 10:26:20 +10:00
parent 2dd24defd9
commit 40c23769ab
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
OS_DEBUG=1
OS_LOG_CAPTURE=1
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'