fix: keep --system packs among the verified packs

The pack suffix test of b20d65d12 missed the platform --system packs, which carry their system after it (_BIOS_Pack_Playstation.zip): their manifest was no longer injected and install.py refused them. A pack name holds _BIOS_Pack, then an optional tag, then .zip.
This commit is contained in:
Abdessamad Derraz committed 2026-11-05 20:29:53 +01:00
1 parent 00df728797
commit 5749c66e32
2 files changed
+12 -2

No files matched your search

+6
View File
@@ -240,6 +240,12 @@ class PartsAreNotTakenForPacks(SplitFixture):
self._build(self.dist / name, {"RetroBIOS.sh": b"#!/bin/sh\n"})
before = {p.name: p.read_bytes() for p in self.dist.glob("RetroBIOS*.zip")}
self.assertEqual(builder._pack_archives(str(self.dist)), [self.pack.name])
# A --system platform pack carries its system after the suffix.
system = self.dist / "Demo_1.0_BIOS_Pack_Playstation.zip"
self._build(system, {"one.bin": b"1"})
self.assertEqual(builder._pack_archives(str(self.dist)),
sorted([self.pack.name, system.name]))
system.unlink()
with contextlib.redirect_stdout(io.StringIO()):
builder.verify_and_finalize_packs(str(self.dist), {"files": {}, "indexes": {}},
skip_conformance=True)