ci: fix ci_build_apps.py for linux target

This commit is contained in:
Fu Hanxi 2023-01-05 12:27:00 +08:00
parent a786676d8d
commit 74794c64f5

View File

@ -60,13 +60,17 @@ def get_pytest_apps(
LOGGER.info(f'Found {len(app_dirs)} apps')
app_dirs.sort()
default_size_json_path = 'size.json'
if target == 'linux': # no idf_size.py for linux target
default_size_json_path = None # type: ignore
apps = find_apps(
app_dirs,
target=target,
build_dir='build_@t_@w',
config_rules_str=config_rules_str,
build_log_path='build_log.txt',
size_json_path='size.json',
size_json_path=default_size_json_path,
check_warnings=True,
manifest_files=[str(p) for p in Path(IDF_PATH).glob('**/.build-test-rules.yml')],
default_build_targets=SUPPORTED_TARGETS + extra_default_build_targets,