mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-25 13:19:03 -05:00
fix: start each pack run with no stale notices
_MISSING_DATA_DIRS is module state: a test that called main() after one whose data directories were not cached exited 1 with the earlier run's notice. main() now clears it first.
This commit is contained in:
1 parent
973394717c
commit
1998580772
1 file changed
+3
@@ -3091,6 +3091,9 @@ _MISSING_DATA_DIRS: set[str] = set()
|
||||
|
||||
|
||||
def main() -> None:
|
||||
# One run's account: tests call main() repeatedly in one process, and a
|
||||
# notice left by an earlier run failed a later one that missed nothing.
|
||||
_MISSING_DATA_DIRS.clear()
|
||||
with contextlib.ExitStack() as held:
|
||||
try:
|
||||
_main(held)
|
||||
|
||||
Reference in new issue
Block a user