From 40c23769abf318fa74d867e109885747bcf13620 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 6 Sep 2016 10:26:20 +1000 Subject: [PATCH] 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 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 47d2dfb..7928cad 100644 --- a/tox.ini +++ b/tox.ini @@ -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}'