From 948fdfcc2cd089efda20c834dd4a5d7e182cde6a Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Tue, 7 May 2024 09:19:00 +0200 Subject: [PATCH] ci: apply new fix in pytest-embedded 1.10 --- conftest.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/conftest.py b/conftest.py index 79e5ad464a..5270eb2dba 100644 --- a/conftest.py +++ b/conftest.py @@ -25,7 +25,6 @@ import re import typing as t import zipfile from copy import deepcopy -from datetime import datetime from urllib.parse import quote import common_test_methods # noqa: F401 @@ -56,15 +55,10 @@ def idf_path() -> str: return os.path.dirname(__file__) -@pytest.fixture(scope='session', autouse=True) -def session_tempdir() -> str: - _tmpdir = os.path.join( - os.path.dirname(__file__), - 'pytest_embedded_log', - datetime.now().strftime('%Y-%m-%d_%H-%M-%S'), - ) - os.makedirs(_tmpdir, exist_ok=True) - return _tmpdir +@pytest.fixture(scope='session') +def session_root_logdir(idf_path: str) -> str: + """Session scoped log dir for pytest-embedded""" + return idf_path @pytest.fixture