mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-30 05:18:51 -06:00
refactor: move the export run into exporter
This commit is contained in:
1 parent
d87993129a
commit
2a49bf237b
4 files changed
+88
-80
No files matched your search
@@ -38,6 +38,10 @@ COMMANDS = {
|
||||
"mame_ref_audit.py": ("profiling/mamerefs.py",),
|
||||
"fileless_audit.py": ("profiling/fileless.py",),
|
||||
"bundled_only.py": ("packs/bundledonly.py",),
|
||||
"export_native.py": ("exporter/runner.py", "exporter/native.py", "exporter/originals.py", "exporter/landed.py"),
|
||||
"mame_ref_audit.py": ("profiling/mamerefs.py",),
|
||||
"fileless_audit.py": ("profiling/fileless.py",),
|
||||
"bundled_only.py": ("packs/bundledonly.py",),
|
||||
"mame_ref_audit.py": ("profiling/mamerefs.py",),
|
||||
"fileless_audit.py": ("profiling/fileless.py",),
|
||||
"mame_ref_audit.py": ("profiling/mamerefs.py",),
|
||||
|
||||
@@ -616,7 +616,7 @@ class ExporterRegistry(unittest.TestCase):
|
||||
to export. A platform with no exporter and no such mark still fails."""
|
||||
import contextlib
|
||||
|
||||
import export_native
|
||||
from exporter import runner
|
||||
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
platforms = Path(directory)
|
||||
@@ -624,9 +624,9 @@ class ExporterRegistry(unittest.TestCase):
|
||||
"platforms:\n cardonly:\n native_list: none\n unwritten: {}\n",
|
||||
encoding="utf-8")
|
||||
with contextlib.redirect_stdout(io.StringIO()) as out:
|
||||
self.assertEqual(export_native.run(
|
||||
self.assertEqual(runner.run(
|
||||
["cardonly"], directory, directory, str(platforms), directory, False), 0)
|
||||
self.assertEqual(export_native.run(
|
||||
self.assertEqual(runner.run(
|
||||
["unwritten"], directory, directory, str(platforms), directory, False), 1)
|
||||
self.assertIn("SKIP cardonly: names no BIOS file of its own", out.getvalue())
|
||||
|
||||
|
||||
Reference in new issue
Block a user