mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-20 18:59:07 -05:00
fix: name a target only where it narrows the pack
This commit is contained in:
1 parent
9c154a29b9
commit
4246d9ec66
3 files changed
+32
-2
No files matched your search
@@ -35,5 +35,21 @@ class CheckReadsTheTargetLikeTheBuild(unittest.TestCase):
|
||||
self.assertTrue(cores)
|
||||
|
||||
|
||||
class ANameClaimsOnlyANarrowingThatHappened(unittest.TestCase):
|
||||
"""--all --target switch packed BizHawk and MiSTer whole, and named them
|
||||
BizHawk_..._Switch_BIOS_Pack.zip with a README saying 'cores available
|
||||
on switch'."""
|
||||
|
||||
def test_a_platform_without_the_target_is_named_plainly(self):
|
||||
from generate_pack import _narrowings, _platform_target
|
||||
|
||||
platforms = str(REPO_ROOT / "platforms")
|
||||
self.assertIsNone(_platform_target("bizhawk", "switch", platforms))
|
||||
self.assertEqual(_narrowings("full", None, None, False, False), [])
|
||||
self.assertEqual(
|
||||
_platform_target("retroarch", "nx", platforms), "nintendo-switch"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user