Destroy Log instance at the end of teardown method

This commit is contained in:
Katarzyna Lapinska
2019-10-30 08:40:31 +01:00
parent 00df533d15
commit 291ea908aa
2 changed files with 3 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ from api.cas import installer
from api.cas import casadm
from api.cas import git
from test_utils.os_utils import Udev
from log.logger import create_log
from log.logger import create_log, Log
plugins_dir = os.path.join(os.path.dirname(__file__), "../plugins")
sys.path.append(plugins_dir)
@@ -110,6 +110,7 @@ def pytest_runtest_teardown():
TestRun.LOGGER.end()
TestRun.LOGGER.get_additional_logs()
Log.destroy()
def pytest_configure(config):