mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-28 12:28:51 -06:00
refactor: move profile selection into profiling
select_profiles and version_selection go to profiling.selection, the flag refusals to profiling.flagchecks. main calls selection, quota and the profile loader through their modules, so tests patch them there. generate_truth's parse_args becomes build_parser.
This commit is contained in:
1 parent
8afccc3d0f
commit
b520e48798
8 files changed
+241
-219
No files matched your search
@@ -63,10 +63,10 @@ class ABuildbotNameSelectsItsProfile(unittest.TestCase):
|
||||
"""Both refused pcfx, which verify --emulator accepts."""
|
||||
import argparse
|
||||
|
||||
import profile_sync
|
||||
from profiling.selection import select_profiles
|
||||
|
||||
args = argparse.Namespace(changed=False, added=False, emulator=["pcfx"])
|
||||
self.assertEqual(list(profile_sync.select_profiles(self.PROFILES, args)), ["beetle_pcfx"])
|
||||
self.assertEqual(list(select_profiles(self.PROFILES, args)), ["beetle_pcfx"])
|
||||
proc = subprocess.run(
|
||||
[sys.executable, "scripts/fileless_audit.py", "pcfxx", "--offline"],
|
||||
cwd=REPO_ROOT, capture_output=True, text=True, timeout=600, check=False,
|
||||
|
||||
Reference in new issue
Block a user