fix: refuse a missing platforms directory

This commit is contained in:
Abdessamad Derraz committed 2026-11-06 03:25:20 +01:00
1 parent 6445e5d7d6
commit 27991c84ba
8 files changed
+58 -2

No files matched your search

+2
View File
@@ -21,6 +21,7 @@ from common import (
load_emulator_profiles,
load_platform_config,
load_target_config,
require_directory,
require_platform,
require_yaml,
truth_target_dir,
@@ -72,6 +73,7 @@ def parse_args(argv: list[str] | None = None) -> argparse.Namespace:
def main(argv: list[str] | None = None) -> None:
args = parse_args(argv)
require_directory(args.platforms_dir, "--platforms-dir")
registry_path = os.path.join(args.platforms_dir, "_registry.yml")
with open(registry_path) as f: