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:
Abdessamad Derraz committed 2026-10-20 02:24:45 +02:00
1 parent b402a8b917
commit 8da4757538
1 file changed
+5 -2
+5 -2
View File
@@ -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)