fix: compare md5 when keeping Recalbox text

The attribute pattern took letters only, so md5 never entered the comparison and an element whose digest the truth corrects kept Recalbox's text. A test written before the change caught it. The RetroDECK fixture now names the core that reads its addition, as the placement rule requires.
This commit is contained in:
Abdessamad Derraz committed 2026-10-20 01:25:25 +02:00
1 parent c5fd079b78
commit 19a7128ec6
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -128,7 +128,8 @@ class RetroDeckWritesWhatItCounts(unittest.TestCase):
def test_addition_goes_to_the_system_component(self):
declared = NativeFile("a.bin", "bios/a.bin", "psx",
platform={"component": "duckstation", "md5": A})
added = NativeFile("b.bin", "bios/b.bin", "psx", truth={"md5": B})
added = NativeFile("b.bin", "bios/b.bin", "psx", truth={"md5": B},
runners=[(True, "duckstation")])
spread = NativeSystem("amiga", files=[
NativeFile("k1", "bios/k1", "amiga", platform={"component": "retroarch"}),
NativeFile("k2", "bios/k2", "amiga", platform={"component": "puae"}),