Merge branch 'bugfix/pytest_build_dir_arg' into 'master'

fix(pytest): respect --build-dir argument from pytest-embedded

See merge request espressif/esp-idf!30609
This commit is contained in:
Ivan Grokhotkov
2024-05-07 21:12:57 +08:00
3 changed files with 5 additions and 0 deletions

View File

@ -206,6 +206,9 @@ def build_dir(
check_dirs = [f'build_{target}_{config}']
else:
check_dirs = []
build_dir_arg = request.config.getoption('build_dir', None)
if build_dir_arg:
check_dirs.append(build_dir_arg)
if target is not None and config is not None:
check_dirs.append(f'build_{target}_{config}')
if target is not None: