mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
ci: fix setup error ignore issue
This commit is contained in:
parent
81375c5d82
commit
a8f68044a2
@ -12,6 +12,7 @@
|
|||||||
#
|
#
|
||||||
# This is an experimental feature, and if you found any bug or have any question, please report to
|
# This is an experimental feature, and if you found any bug or have any question, please report to
|
||||||
# https://github.com/espressif/pytest-embedded/issues
|
# https://github.com/espressif/pytest-embedded/issues
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
@ -185,10 +186,9 @@ def build_dir(app_path: str, target: Optional[str], config: Optional[str]) -> st
|
|||||||
)
|
)
|
||||||
|
|
||||||
recommend_place = check_dirs[0]
|
recommend_place = check_dirs[0]
|
||||||
logging.error(
|
raise ValueError(
|
||||||
f'no build dir valid. Please build the binary via "idf.py -B {recommend_place} build" and run pytest again'
|
f'no build dir valid. Please build the binary via "idf.py -B {recommend_place} build" and run pytest again'
|
||||||
)
|
)
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
@ -369,9 +369,6 @@ class IdfPytestEmbedded:
|
|||||||
def pytest_runtest_makereport(
|
def pytest_runtest_makereport(
|
||||||
self, item: Function, call: CallInfo[None]
|
self, item: Function, call: CallInfo[None]
|
||||||
) -> Optional[TestReport]:
|
) -> Optional[TestReport]:
|
||||||
if call.when == 'setup':
|
|
||||||
return None
|
|
||||||
|
|
||||||
report = TestReport.from_item_and_call(item, call)
|
report = TestReport.from_item_and_call(item, call)
|
||||||
if report.outcome == 'failed':
|
if report.outcome == 'failed':
|
||||||
test_case_name = item.funcargs.get('test_case_name', '')
|
test_case_name = item.funcargs.get('test_case_name', '')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user