mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-27 11:58:53 -06:00
refactor: split profile_sync into profiling
profile_sync.py keeps the command line: the parser, the flag checks, profile selection against the branch, main, and the two steps that read top-level modules (project_base, the site's source paths). The library goes to one module per concern under scripts/profiling. Tests that patched a name now patch the module their caller reads it from. test_layers declares profiling with no sibling imports.
This commit is contained in:
1 parent
eea24c68ca
commit
735f86283b
24 files changed
+6016
-5737
No files matched your search
@@ -103,8 +103,10 @@ class DeploySiteTriggers(unittest.TestCase):
|
||||
def test_the_site_reads_the_ref_grammar_not_the_checker(self):
|
||||
"""sitesources imported two parsing functions from profile_sync, so
|
||||
every change to the comparison tool rebuilt an unchanged site."""
|
||||
self.assertNotIn("scripts/profile_sync.py", closure(["generate_site.py"]))
|
||||
self.assertIn("scripts/model/sourceref.py", closure(["generate_site.py"]))
|
||||
read = closure(["generate_site.py"])
|
||||
self.assertNotIn("scripts/profile_sync.py", read)
|
||||
self.assertEqual(sorted(p for p in read if p.startswith("scripts/profiling/")), [])
|
||||
self.assertIn("scripts/model/sourceref.py", read)
|
||||
|
||||
|
||||
class ThePullRequestBuildsTheSite(unittest.TestCase):
|
||||
|
||||
Reference in new issue
Block a user