diff options
author | Matthew Treinish <mtreinish@kortar.org> | 2014-08-29 10:16:27 -0400 |
---|---|---|
committer | Matthew Treinish <mtreinish@kortar.org> | 2014-08-29 10:16:27 -0400 |
commit | 264c1e045da3950c73e2b17b342b1e179276e174 (patch) | |
tree | 2f12671647aedac8444437ba2c89dd5cda514080 | |
parent | 0e74d2575c6bf905c202ebbbfcbd07365baf9a22 (diff) | |
download | tempest-lib-264c1e045da3950c73e2b17b342b1e179276e174.tar.gz |
Add missing log_format definition
As part of shrinking the base test class file down to just the core
functionality the definition for the logging fixture log format was
accidently removed. This causes any test based on the test class to
fail during setUp. This commit fixes the oversight by adding it back.
-rw-r--r-- | tempest_lib/base.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tempest_lib/base.py b/tempest_lib/base.py index c0e4ae9..d3729ed 100644 --- a/tempest_lib/base.py +++ b/tempest_lib/base.py @@ -52,6 +52,12 @@ def validate_tearDownClass(): class BaseTestCase(BaseDeps): setUpClassCalled = False + # NOTE(sdague): log_format is defined inline here instead of using the oslo + # default because going through the config path recouples config to the + # stress tests too early, and depending on testr order will fail unit tests + log_format = ('%(asctime)s %(process)d %(levelname)-8s ' + '[%(name)s] %(message)s') + @classmethod def setUpClass(cls): if hasattr(super(BaseTestCase, cls), 'setUpClass'): |