mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-22 03:39:14 -05:00
fix: an unclaimed pcem ROM fails the owner test
The test skipped when slots stopped claiming pcem's ide_xt.bin. The profile declares it and the collection holds three copies, so that skip could only hide a claiming defect. It now skips only when the file is not collected and fails when it is not claimed.
This commit is contained in:
1 parent
b402a8b917
commit
8da4757538
1 file changed
+5
-2
@@ -55,9 +55,12 @@ class ReadersNameTheOwner(unittest.TestCase):
|
||||
held = {
|
||||
claim.destination.rsplit("/", 1)[-1]: claim.local_path for claim in claims
|
||||
}
|
||||
# pcem declares ide_xt.bin and the collection holds it: an unclaimed
|
||||
# file here is a claiming defect, not missing data.
|
||||
if not any(e.get("path", "").endswith("/ide_xt.bin") for e in self.db["files"].values()):
|
||||
self.skipTest("ide_xt.bin is not collected")
|
||||
local = held.get("ide_xt.bin")
|
||||
if local is None:
|
||||
self.skipTest("ide_xt.bin is not claimed")
|
||||
self.assertIsNotNone(local, "pcem's ide_xt.bin is not claimed")
|
||||
self.assertTrue(local.startswith("bios/Other/pcem/"), local)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user