mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-15 22:43:48 -06:00
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:
1 parent
00df728797
commit
5749c66e32
2 files changed
+12
-2
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user