mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-30 21:38:55 -06:00
refactor: move es_systems readers out of batocera
es_systems.yml readers move to scraper/es_systems.py, which the board target scraper imports at load time instead of inside a function to dodge the cycle. The _default.remove_cores list is target override data: it is model.targets.not_cores, no longer a private name of batocera_scraper.
This commit is contained in:
1 parent
14cc76132f
commit
e6295aba88
12 files changed
+174
-167
No files matched your search
@@ -268,6 +268,7 @@ class OnlyWhatABoardBuildsIsRun(unittest.TestCase):
|
||||
|
||||
def test_only_what_a_board_builds_or_the_user_supplies_is_run(self):
|
||||
from scraper import batocera_scraper as bs
|
||||
from scraper.es_systems import es_systems_by_system
|
||||
|
||||
# A board selects kodi's package and buildroot's mpv. Citron is
|
||||
# listed by es_systems, so the symbol of a folder of that name does
|
||||
@@ -281,7 +282,7 @@ class OnlyWhatABoardBuildsIsRun(unittest.TestCase):
|
||||
self.assertEqual(sorted(standalone), ["kodi", "lexaloffle", "mpv", "vox_official"])
|
||||
# Each system keeps the list es_systems.yml writes (whose files its
|
||||
# entries ask for), less a default no package builds.
|
||||
by_system = bs.es_systems_by_system(self.ES, self.DEFAULTS, set(), built)
|
||||
by_system = es_systems_by_system(self.ES, self.DEFAULTS, set(), built)
|
||||
self.assertEqual(by_system["switch"], ["citron"])
|
||||
self.assertEqual(by_system["voxatron"], ["lexaloffle", "vox_official"])
|
||||
self.assertEqual(by_system["gba"], ["mgba"])
|
||||
|
||||
Reference in new issue
Block a user