fix: give the Lakka pack its own install guide

This commit is contained in:
Abdessamad Derraz committed 2026-10-17 19:40:05 +02:00
1 parent 08f296138f
commit 785c5bef8c
2 files changed
+35 -3

No files matched your search

+20
View File
@@ -3284,5 +3284,25 @@ class TheSiteCountsSlotsNotVersions(unittest.TestCase):
self.assertIn("1 in repo, 1 missing", line)
class EveryReadmeNamesItsFolder(unittest.TestCase):
"""The Lakka pack's README reused RetroArch's guide and never named
/storage/system, the folder the registry and the installer use."""
def test_the_registry_folder_is_in_the_guide(self):
from scripts.packreadme import _build_readme
registry = yaml.safe_load((ROOT / "platforms" / "_registry.yml").read_text())
for name, entry in registry["platforms"].items():
folder = (entry.get("extract_to") or "").rstrip("/")
if not folder:
continue
with self.subTest(platform=name):
text = _build_readme(name, name, "", 1, 1, bios_paths=[folder])
self.assertIn(folder, text)
lakka = _build_readme("lakka", "Lakka", "", 1, 1)
self.assertNotIn("retroarch/system", lakka)
if __name__ == "__main__":
unittest.main()