mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-16 06:44:43 -06:00
refactor: verify keeps its lock stack name
The --destinations branch of _main rebound held, the ExitStack that holds the data directory locks, to the dict it writes. It is now named destinations, and a test refuses a rebinding of the stack.
This commit is contained in:
1 parent
dfa1cc31d3
commit
54eac3b2df
2 files changed
+20
-3
No files matched your search
+3
-3
@@ -2988,13 +2988,13 @@ def _main(held: contextlib.ExitStack) -> None:
|
||||
print(_overall_summary(group_results))
|
||||
|
||||
if args.destinations:
|
||||
held = {}
|
||||
destinations = {}
|
||||
for (result, names), (group, _rep) in zip(group_results, groups):
|
||||
for name, key in zip(names, group):
|
||||
held[name] = {
|
||||
destinations[name] = {
|
||||
"platform": key, "pack_destinations": result["pack_destinations"],
|
||||
}
|
||||
Path(args.destinations).write_text(json.dumps(held, indent=1, sort_keys=True))
|
||||
Path(args.destinations).write_text(json.dumps(destinations, indent=1, sort_keys=True))
|
||||
|
||||
if args.json:
|
||||
for r in all_results.values():
|
||||
|
||||
Reference in new issue
Block a user