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

This commit is contained in:
Ivan Grokhotkov
2024-04-30 17:57:17 +02:00
parent ef716a2390
commit 087d055090
3 changed files with 5 additions and 0 deletions

View File

@ -212,6 +212,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: