Skip to content

Commit b8ed93e

Browse files
committed
ci: apply new fix in pytest-embedded 1.10
1 parent 840ec65 commit b8ed93e

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

conftest.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import typing as t
2626
import zipfile
2727
from copy import deepcopy
28-
from datetime import datetime
2928
from urllib.parse import quote
3029

3130
import common_test_methods # noqa: F401
@@ -56,15 +55,10 @@ def idf_path() -> str:
5655
return os.path.dirname(__file__)
5756

5857

59-
@pytest.fixture(scope='session', autouse=True)
60-
def session_tempdir() -> str:
61-
_tmpdir = os.path.join(
62-
os.path.dirname(__file__),
63-
'pytest_embedded_log',
64-
datetime.now().strftime('%Y-%m-%d_%H-%M-%S'),
65-
)
66-
os.makedirs(_tmpdir, exist_ok=True)
67-
return _tmpdir
58+
@pytest.fixture(scope='session')
59+
def session_root_logdir(idf_path: str) -> str:
60+
"""Session scoped log dir for pytest-embedded"""
61+
return idf_path
6862

6963

7064
@pytest.fixture

0 commit comments

Comments
 (0)