Skip to content

Commit ae9aa91

Browse files
ehborisovsseliverstov
authored andcommitted
use absolute path for passed report dir (fixes #350 via #353)
1 parent c008597 commit ae9aa91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

allure-pytest/src/plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import allure
44
import allure_commons
5+
import os
56

67
from allure_commons.types import LabelType
78
from allure_commons.logger import AllureFileLogger
@@ -115,6 +116,7 @@ def pytest_configure(config):
115116
config.add_cleanup(cleanup_factory(test_helper))
116117

117118
if report_dir:
119+
report_dir = os.path.abspath(report_dir)
118120
test_listener = AllureListener(config)
119121
config.pluginmanager.register(test_listener)
120122
allure_commons.plugin_manager.register(test_listener)

0 commit comments

Comments
 (0)