mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-17 07:07:52 -06:00
fix: games tools write whole files, name options
The games importers wrote through fixed .part names, the new options had no help text, and romfolders stopped on the first setup the offline cache lacked. RetroArch's rom folder map is regenerated from its source spec (path null, as the schema says). The installer's Python 3.8 job imports the games tests without pyyaml, so the region rules load lazily.
This commit is contained in:
1 parent
af2e930d32
commit
fd7dd0efe5
12 files changed
+82
-40
No files matched your search
@@ -27,7 +27,6 @@ import zlib
|
||||
from pathlib import Path
|
||||
from unittest import mock
|
||||
|
||||
import yaml
|
||||
|
||||
REPO_ROOT = Path(__file__).resolve().parent.parent
|
||||
sys.path.insert(0, str(REPO_ROOT))
|
||||
@@ -529,6 +528,12 @@ class KeepEveryRegionCases(unittest.TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls) -> None:
|
||||
# The installer's own jobs (Python 3.8 with pyte alone) import this
|
||||
# module for its card builders, and install.py needs no pyyaml.
|
||||
try:
|
||||
import yaml # noqa: PLC0415
|
||||
except ImportError as exc:
|
||||
raise unittest.SkipTest("pyyaml reads games/regions.yml") from exc
|
||||
with open(REPO_ROOT / "games" / "regions.yml", encoding="utf-8") as handle:
|
||||
cls.rules = yaml.safe_load(handle)
|
||||
|
||||
|
||||
Reference in new issue
Block a user