mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 03:07:21 +02:00
ci: apply new fix in pytest-embedded 1.10
This commit is contained in:
14
conftest.py
14
conftest.py
@ -25,7 +25,6 @@ import re
|
|||||||
import typing as t
|
import typing as t
|
||||||
import zipfile
|
import zipfile
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
from datetime import datetime
|
|
||||||
from urllib.parse import quote
|
from urllib.parse import quote
|
||||||
|
|
||||||
import common_test_methods # noqa: F401
|
import common_test_methods # noqa: F401
|
||||||
@ -56,15 +55,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
|
||||||
|
Reference in New Issue
Block a user