Change BaseLoggingTestCase setup for logging

96eae957b0 changed initialization for base
tests but logging configuration gets lost after super().setUp()

Revert this part as it is not needed in the end for tests to pass
properly

Change-Id: I4a8ca76920b0f174b37171c09653b6755a2dda5c
Closes-Bug: #1915272
This commit is contained in:
Bernard Cafarelli 2021-02-10 15:07:38 +01:00
parent a3dc80b509
commit ba56843d51
No known key found for this signature in database
GPG Key ID: 9531F08245465A52
1 changed files with 1 additions and 2 deletions

View File

@ -69,6 +69,7 @@ def config_decorator(method_to_decorate, config_tuples):
class BaseLoggingTestCase(base.BaseTestCase):
def setUp(self):
super().setUp()
# NOTE(slaweq): Because of issue with stestr and Python3, we need
# to avoid too much output to be produced during tests, so we will
# ignore python warnings here
@ -76,8 +77,6 @@ class BaseLoggingTestCase(base.BaseTestCase):
base.setup_test_logging(
cfg.CONF, DEFAULT_LOG_DIR, "%s.txt" % self.id())
cfg.CONF.set_override('use_helper_for_ns_read', False, group='AGENT')
super().setUp()
warnings.simplefilter("ignore") # warnings get reset by super
class BaseSudoTestCase(BaseLoggingTestCase):