Update testr config for better logging

With this change, recorded log messages during test runs will be displayed
more consistently, and will include the log level.

Change-Id: Iceba7e8f82ec339ff122a7e0c220e33cca2274d6
This commit is contained in:
Kiall Mac Innes 2014-07-26 14:55:50 -07:00
parent c75acd8669
commit 4fcf8cf080
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,8 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
OS_DEBUG=${OS_DEBUG:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ./designate/tests $LISTOPT $IDOPTION

View File

@ -238,7 +238,6 @@ class TestCase(base.BaseTestCase):
def setUp(self):
super(TestCase, self).setUp()
self.useFixture(fixtures.FakeLogger('designate', level='DEBUG'))
self.CONF = self.useFixture(cfg_fixture.Config(cfg.CONF)).conf
self.messaging_conf = self.useFixture(