diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-05-18 00:46:45 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-05-18 00:50:02 +0200 |
commit | 08cb7e1e62d1485f3430a1e1e027c9c6d4e9f94a (patch) | |
tree | 13a40b2372d447fb0829b900425699c5046945bd /functest | |
parent | c7a17c95377eb277bfe648f17fda9b5f22d3a30c (diff) |
Fix 2 issues related to logger in pytest_suite_runer.py
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 <cedric.ollivier@orange.com>
Diffstat (limited to 'functest')
-rw-r--r-- | functest/core/pytest_suite_runner.py | 4 |
1 files changed, 1 insertions, 3 deletions
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): """ |