fix: one core name per RetroPie package

The platform scraper kept lr-dosbox-pure as dosbox-pure, which matched the standalone DOSBox Pure Unleashed profile, while the target scraper wrote dosbox_pure. Both now read core_name(), and platforms/retropie.yml is rescraped at its pinned revision 46128cd2: only the libretro core names change, and six Unleashed files leave the RetroPie manifest.
This commit is contained in:
Abdessamad Derraz committed 2026-11-06 04:03:36 +01:00
1 parent 39e6afbeb2
commit 87f6211983
5 files changed
+67 -110

No files matched your search

+23
View File
@@ -289,6 +289,29 @@ class RetroPiePackageList(unittest.TestCase):
self.assertEqual(config["inherits"], "retroarch")
self.assertEqual(config["base_destination"], "BIOS")
def test_a_libretro_package_takes_the_buildbot_core_name(self):
"""lr-dosbox-pure builds dosbox_pure. Kept hyphenated, it matched
DOSBox Pure Unleashed, a standalone build RetroPie does not ship,
while the target scraper wrote dosbox_pure."""
from scraper.targets.retropie_targets_scraper import core_name as target_name
scraper = self._scraper(
{
"retropie_packages.sh": '__version="4.8.12"\n',
"scriptmodules/libretrocores/lr-dosbox-pure.sh": (
'rp_module_id="lr-dosbox-pure"\n'
),
"scriptmodules/emulators/dosbox-staging.sh": (
'rp_module_id="dosbox-staging"\n'
),
}
)
cores = scraper.generate_platform_yaml()["cores"]
self.assertEqual(cores, ["dosbox-staging", "dosbox_pure"])
self.assertEqual(
sorted(target_name(m) for m in scraper.module_ids()), cores
)
def test_a_package_built_outside_libretro_runs_standalone(self):
"""hatari ships as lr-hatari and as hatari: both layouts are read."""
scraper = self._scraper(