mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-01 07:33:45 -06:00
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:
1 parent
ee2332b799
commit
88324d595e
1 file changed
+3
@@ -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)), \
|
||||
|
||||
Reference in new issue
Block a user