mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-01 05:48:52 -06:00
refactor: move verify, slots, crossref into packs
The three commands keep their parser, main and printing. Scans, scopes, report text, the JSON forms, the strict gate and the destinations file live in new packs modules, one subject each.
This commit is contained in:
1 parent
1e95a73a4d
commit
6ba52a9682
21 files changed
+897
-774
No files matched your search
@@ -222,9 +222,7 @@ class CrossReferenceReadsTheTargetAcrossPlatforms(unittest.TestCase):
|
||||
each narrowed to the cores it builds for it."""
|
||||
|
||||
def test_the_scope_is_the_union_of_each_platforms_target_cores(self):
|
||||
import argparse
|
||||
|
||||
import cross_reference
|
||||
from packs.crossrefscope import tree_scope
|
||||
from model.platforms import load_platform_config
|
||||
from model.profiles import load_emulator_profiles
|
||||
from model.registry import list_registered_platforms
|
||||
@@ -232,9 +230,8 @@ class CrossReferenceReadsTheTargetAcrossPlatforms(unittest.TestCase):
|
||||
|
||||
platforms_dir = str(REPO_ROOT / "platforms")
|
||||
profiles = load_emulator_profiles(str(REPO_ROOT / "emulators"))
|
||||
args = argparse.Namespace(platform=None, target="switch", platforms_dir=platforms_dir)
|
||||
with contextlib.redirect_stderr(io.StringIO()):
|
||||
tree = cross_reference._tree_scope(args, profiles)
|
||||
tree = tree_scope(None, "switch", platforms_dir, profiles)
|
||||
cache, kept = build_target_cores_cache(
|
||||
list_registered_platforms(platforms_dir), "switch", platforms_dir, is_all=True,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user