From 08cb7e1e62d1485f3430a1e1e027c9c6d4e9f94a Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Ollivier?= Date: Thu, 18 May 2017 00:46:45 +0200 Subject: [PATCH] Fix 2 issues related to logger in pytest_suite_runer.py MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit logging.ini requires the full name otherwise all log messages are lost. Calling basicConfig() is useless as it has been correctly configured by run_tests.py before. Change-Id: I03663c01f795b1b844239a9e24379faa529829aa Signed-off-by: Cédric Ollivier --- functest/core/pytest_suite_runner.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/functest/core/pytest_suite_runner.py b/functest/core/pytest_suite_runner.py index 9d787359e..0dd860d26 100644 --- a/functest/core/pytest_suite_runner.py +++ b/functest/core/pytest_suite_runner.py @@ -13,8 +13,6 @@ import time from functest.core import testcase -logging.basicConfig() - class PyTestSuiteRunner(testcase.TestCase): """ @@ -23,8 +21,8 @@ class PyTestSuiteRunner(testcase.TestCase): """ def __init__(self, **kwargs): super(PyTestSuiteRunner, self).__init__(**kwargs) - self.logger = logging.getLogger(self.__class__.__name__) self.suite = None + self.logger = logging.getLogger(__name__) def run(self, **kwargs): """ -- 2.16.6