From 264c1e045da3950c73e2b17b342b1e179276e174 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Fri, 29 Aug 2014 10:16:27 -0400 Subject: [PATCH] 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. --- tempest_lib/base.py | 6 ++++++ 1 file changed, 6 insertions(+) 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'):