fix: keep the host system out of a from test

On a WSL host the in-process run turned drive letters on for every test after it, and three TUI tests failed in the combined suite.
This commit is contained in:
Abdessamad Derraz committed 2026-10-27 06:10:31 +01:00
1 parent ee2332b799
commit 88324d595e
1 file changed
+3
+3
View File
@@ -896,7 +896,10 @@ class AFolderAroundTheBiosFolder(FromFolder):
argv = ["install.py", "--platform", "retroarch", "--dest", str(bios),
"--manifest", str(self.list), "--from", str(card), "--no-input", "--yes"]
out = io.StringIO()
# The host's own system: on WSL the run turned drive letters on for
# every test after it.
with mock.patch.object(sys, "argv", argv), \
mock.patch.object(install, "detect_os", return_value="linux"), \
mock.patch.dict(os.environ, {"RETROBIOS_INSTALL_OFFLINE": "1"}), \
mock.patch.object(os, "replace", refusing(real_replace)), \
mock.patch.object(os, "rename", refusing(real_rename)), \