mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-21 17:17:51 -06:00
fix: skip other casings in a foreign tree
reminiscence's Flashback module reunion resolved to skyline's zoneinfo/Indian/Reunion through the case-insensitive name step, and the emulator pack shipped the time-zone file. Another casing found only in another emulator's tree says nothing about the entry.
This commit is contained in:
1 parent
d38cd58036
commit
08cf4dd914
2 files changed
+15
No files matched your search
@@ -93,6 +93,16 @@ class ForeignTreeNames(unittest.TestCase):
|
||||
self.assertEqual(status, "data_dir")
|
||||
self.assertEqual(Path(path).read_bytes(), b"B" * 64)
|
||||
|
||||
def test_another_casing_in_another_tree_is_not_the_file(self):
|
||||
"""reminiscence's music module reunion took skyline's
|
||||
zoneinfo/Indian/Reunion, a time-zone file, on the casefold step."""
|
||||
self._hold("bios/Other/skyline/tzdata/zoneinfo/Indian/Reunion", b"T" * 64)
|
||||
entry = {
|
||||
"name": "reunion", "aliases": ["mod.flashback-reunion"],
|
||||
"category": "game_data", "source_profile": "reminiscence",
|
||||
}
|
||||
self.assertEqual(resolve_local_file(entry, self.db), (None, "not_found"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user