From d59b76dd020dc58d1a1bddc23dcd7d940d2fc492 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Tue, 10 Nov 2026 03:34:48 +0100 Subject: [PATCH] fix: count test cores by role on the surfaces Five test cores moved from type: test to role: test. The page generator already leaves them out by role, the surface test still read the old type and counted 653 profiled cores against the page's 648. --- tests/test_doc_surfaces.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_doc_surfaces.py b/tests/test_doc_surfaces.py index a66abc4d3..c7d3a40e5 100644 --- a/tests/test_doc_surfaces.py +++ b/tests/test_doc_surfaces.py @@ -450,7 +450,9 @@ class CoreCountsReadFromTheData(unittest.TestCase): sitepages.require() text = sitepages.page("cross-reference.md").read_text(encoding="utf-8") profiles = load_emulator_profiles(str(REPO_ROOT / "emulators")) - unique = {k: v for k, v in profiles.items() if v.get("type") not in ("alias", "test")} + # A test core says so in role, its type staying operational. + unique = {k: v for k, v in profiles.items() + if v.get("type") != "alias" and v.get("role") != "test"} registry = yaml.safe_load((REPO_ROOT / "platforms" / "_registry.yml").read_text( encoding="utf-8"))["platforms"] run = set()