fix: keep MinUI core dirs out of the tree view

Without --platform, cross_reference and the site's gap report merged every
platform's standalone set, MinUI, NextUI and MyMinUI coredir: markers
included. A marker says which cores one platform hands a folder, so in the
union every core those three do not list got no layout: px68k showed 0 of
6 files and the global report lost 238 profiles and 1201 files.
merged_standalone_set drops the markers, and both readers use it.
This commit is contained in:
Abdessamad Derraz committed 2026-11-05 19:39:07 +01:00
1 parent 0428588a6c
commit da19bb5755
4 files changed
+48 -7

No files matched your search

+25
View File
@@ -439,5 +439,30 @@ class TheSitePageOfACardPlatform(unittest.TestCase):
self.assertIn("No ZIP for MinUI. The command installs every file and checks it.", page)
class TheWholeTreeKeepsCoresMinUILeavesOut(unittest.TestCase):
"""Without --platform, cross_reference and the site's gap report merge
every platform's standalone set. MinUI's per-core folders came along and
left every core MinUI does not list with no layout: px68k showed 0 files
and the global report lost 238 profiles."""
def test_a_core_minui_does_not_list_keeps_its_files(self):
from common import merged_standalone_set, platform_layouts
minui = {"core_system_dirs": {"Bios/FC": {"cores": ["fceumm"]}}}
retroarch = {}
merged = merged_standalone_set([minui, retroarch])
profile = {"type": "libretro", "files": [{"name": "cgrom.tmp"}]}
layouts = platform_layouts("px68k", profile, merged)
self.assertEqual(layouts, [(profile, False)])
def test_both_readers_build_the_set_the_same_way(self):
for script in ("cross_reference.py", "generate_site.py"):
source = (REPO_ROOT / "scripts" / script).read_text(encoding="utf-8")
with self.subTest(script=script):
self.assertIn("merged_standalone_set(", source)
self.assertNotIn("set().union(*(\n standalone_set(", source)
self.assertNotIn("*(standalone_set(cov", source)
if __name__ == "__main__":
unittest.main()