mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-20 18:59:07 -05:00
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:
1 parent
c5fd079b78
commit
19a7128ec6
2 files changed
+3
-2
No files matched your search
@@ -35,7 +35,7 @@ SCHEMA_URL = (
|
||||
)
|
||||
|
||||
|
||||
_ATTRIBUTE = re.compile(r'([A-Za-z]+)\s*=\s*"([^"]*)"')
|
||||
_ATTRIBUTE = re.compile(r'([A-Za-z][A-Za-z0-9]*)\s*=\s*"([^"]*)"')
|
||||
_SYSTEM_BLOCK = re.compile(r"<system\b.*?</system>", re.S)
|
||||
_BIOS_ELEMENT = re.compile(r"[ \t]*<bios\b.*?/>", re.S)
|
||||
|
||||
|
||||
@@ -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"}),
|
||||
|
||||
Reference in new issue
Block a user