mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-07 14:44:32 +02:00
Merge branch 'feature/pytest_timeout_per_case' into 'master'
pytest: set default timeout for each case See merge request espressif/esp-idf!20455
This commit is contained in:
@@ -308,6 +308,11 @@ class IdfPytestEmbedded:
|
|||||||
|
|
||||||
items.sort(key=lambda x: (os.path.dirname(x.path), _get_param_config(x)))
|
items.sort(key=lambda x: (os.path.dirname(x.path), _get_param_config(x)))
|
||||||
|
|
||||||
|
# set default timeout 10 minutes for each case
|
||||||
|
for item in items:
|
||||||
|
if 'timeout' not in item.keywords:
|
||||||
|
item.add_marker(pytest.mark.timeout(10 * 60))
|
||||||
|
|
||||||
# add markers for special markers
|
# add markers for special markers
|
||||||
for item in items:
|
for item in items:
|
||||||
if 'supported_targets' in item.keywords:
|
if 'supported_targets' in item.keywords:
|
||||||
|
@@ -5,6 +5,7 @@ pytest-embedded-serial-esp
|
|||||||
pytest-embedded-idf
|
pytest-embedded-idf
|
||||||
pytest-embedded-qemu
|
pytest-embedded-qemu
|
||||||
pytest-rerunfailures
|
pytest-rerunfailures
|
||||||
|
pytest-timeout
|
||||||
|
|
||||||
# build
|
# build
|
||||||
idf-build-apps
|
idf-build-apps
|
||||||
|
Reference in New Issue
Block a user