mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-20 08:37:50 -06:00
fix: gap report reads the launcher layer
cross_reference --platform listed core files the platform's launcher already settles, as Batocera's DuckStation scph1002a.bin while the PAL slot holds scph5502.bin. It now hands the launcher layer the same entries verify does, and counts what it settles as set aside.
This commit is contained in:
1 parent
9808936975
commit
8f7dbb1b31
4 files changed
+119
-20
No files matched your search
@@ -318,6 +318,32 @@ class LauncherLayerTest(unittest.TestCase):
|
||||
self.assertNotIn("a.bin", names)
|
||||
self.assertEqual(result["packed_extras"]["bios"], len(names - {"plain.bin"}))
|
||||
|
||||
def test_the_gap_report_reads_the_launcher_too(self) -> None:
|
||||
"""cross_reference --platform batocera listed duckstation's
|
||||
scph1002a.bin as packed while the PAL slot was filled by the
|
||||
launcher's scph5502.bin, which verify and the builder both knew."""
|
||||
from cross_reference import cross_reference, declared_names, load_platform_files
|
||||
from launchers import declared_destinations
|
||||
|
||||
selected = ["launchertest"]
|
||||
declared, data_dirs = load_platform_files(self.platforms_dir, selected)
|
||||
layer = LauncherLayer(
|
||||
self.config, self.profiles, self.profiles, self.db,
|
||||
declared_destinations(self.config),
|
||||
)
|
||||
report = cross_reference(
|
||||
self.profiles, declared, self.db, data_dirs, set(),
|
||||
all_declared=declared_names(self.platforms_dir, selected, self.db),
|
||||
standalone_cores={"psxemu", "fixemu"},
|
||||
platform="launchertest", launcher_layer=layer,
|
||||
)
|
||||
gaps = sorted(
|
||||
g["path"] for data in report.values() for g in data["gap_details"]
|
||||
)
|
||||
self.assertEqual(gaps, sorted(u["path"] for u in self._report()))
|
||||
self.assertNotIn("core.bin", gaps)
|
||||
self.assertEqual(report["fixemu"]["set_aside"]["launcher"], 1)
|
||||
|
||||
def test_one_decision_for_verify_and_pack(self) -> None:
|
||||
"""The layer is applied once, in the report both sides read."""
|
||||
import generate_pack
|
||||
|
||||
Reference in new issue
Block a user