mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-17 00:43:29 -05:00
chore: build a group's test pack under its given name
This commit is contained in:
1 parent
decd70b19e
commit
6f0692aada
1 file changed
+5
-3
@@ -110,9 +110,11 @@ class GroupRenameKeepsSystemTag(unittest.TestCase):
|
||||
os.chdir(REPO_ROOT)
|
||||
self.addCleanup(os.chdir, previous)
|
||||
with tempfile.TemporaryDirectory(dir=REPO_ROOT / "tmp") as tmp:
|
||||
built = Path(tmp) / f"RetroArch_x_BIOS_Pack{gp._system_tag(['atari-lynx'])}.zip"
|
||||
|
||||
def fake_generate(*a, **kw):
|
||||
def fake_generate(*a, pack_name=None, **kw):
|
||||
# The group's name is handed in: nothing is renamed afterwards.
|
||||
built = Path(tmp) / (
|
||||
pack_name or f"RetroArch_x_BIOS_Pack{gp._system_tag(['atari-lynx'])}.zip"
|
||||
)
|
||||
built.write_bytes(b"")
|
||||
return str(built)
|
||||
|
||||
|
||||
Reference in new issue
Block a user