fix: stop coverage on a missing input directory

This commit is contained in:
Abdessamad Derraz committed 2026-11-06 03:33:17 +01:00
1 parent cb17145665
commit 96f100ac22
2 files changed
+20

No files matched your search

+5
View File
@@ -20,6 +20,7 @@ from pathlib import Path
sys.path.insert(0, os.path.dirname(__file__))
from common import (
InputMissing,
compute_composition,
count_catalog_matched,
declared_root,
@@ -211,6 +212,10 @@ def platform_coverages(
coverages[name] = compute_coverage(
name, platforms_dir, db, data_registry, emulators_dir=emulators_dir,
)
except InputMissing:
# A missing profile or platform directory is no platform
# left out: it emptied every one and cached the result.
raise
except FileNotFoundError as exc:
print(f" {name}: skipped ({exc})", file=sys.stderr)
COVERAGE_CACHE_DIR.mkdir(parents=True, exist_ok=True)