mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-14 15:33:23 -05:00
fix: skip full conformance on a targeted pack
This commit is contained in:
1 parent
a4455ef6a7
commit
8128b47aeb
2 files changed
+80
-4
No files matched your search
@@ -5842,6 +5842,28 @@ struct BurnDriver BurnDrvneogeo = {
|
||||
)
|
||||
self.assertIn("error:", combined)
|
||||
|
||||
def test_a_targeted_pack_skips_full_platform_conformance(self):
|
||||
"""A target-filtered pack is narrower, so the full expectation is off.
|
||||
|
||||
The tag was missing from the skip list, so every targeted pack was
|
||||
checked against the platform's whole system list and reported the
|
||||
systems the target itself had removed as missing: a correct build
|
||||
exited non-zero on hundreds of files it was never asked to carry.
|
||||
"""
|
||||
from generate_pack import _narrowings, _narrows_contents
|
||||
|
||||
for target in ("nintendo-switch", "switch", "rpi4"):
|
||||
with self.subTest(target=target):
|
||||
applied = _narrowings("full", None, target, False, False)
|
||||
self.assertEqual(len(applied), 1, target)
|
||||
tag = applied[0][0]
|
||||
self.assertTrue(
|
||||
_narrows_contents(f"Platform_1.0{tag}_BIOS_Pack.zip"),
|
||||
f"a pack built for {target} would be held to the full list",
|
||||
)
|
||||
|
||||
self.assertFalse(_narrows_contents("Platform_1.0_BIOS_Pack.zip"))
|
||||
|
||||
def test_standalone_mode_names_itself(self):
|
||||
"""--emulator --standalone ships a different file set; without a tag it
|
||||
overwrote the pack built without it."""
|
||||
|
||||
Reference in new issue
Block a user