From 08cb7e1e62d1485f3430a1e1e027c9c6d4e9f94a Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Thu, 18 May 2017 00:46:45 +0200 Subject: Fix 2 issues related to logger in pytest_suite_runer.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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(-) (limited to 'functest') diff --git a/functest/core/pytest_suite_runner.py b/functest/core/pytest_suite_runner.py index 9d787359..0dd860d2 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): """ -- cgit 1.2.3-korg