ci: apply new fix in pytest-embedded 1.10

This commit is contained in:
Fu Hanxi
2024-05-07 09:19:00 +02:00
parent 9f21460e10
commit 899fc7cd4f

View File

@ -20,7 +20,6 @@ import os
import re import re
import sys import sys
from copy import deepcopy from copy import deepcopy
from datetime import datetime
from typing import Callable, Optional from typing import Callable, Optional
import pytest import pytest
@ -58,15 +57,10 @@ def idf_path() -> str:
return os.path.dirname(__file__) return os.path.dirname(__file__)
@pytest.fixture(scope='session', autouse=True) @pytest.fixture(scope='session')
def session_tempdir() -> str: def session_root_logdir(idf_path: str) -> str:
_tmpdir = os.path.join( """Session scoped log dir for pytest-embedded"""
os.path.dirname(__file__), return idf_path
'pytest_embedded_log',
datetime.now().strftime('%Y-%m-%d_%H-%M-%S'),
)
os.makedirs(_tmpdir, exist_ok=True)
return _tmpdir
@pytest.fixture @pytest.fixture