restore LD_LIBRARY_PATH for PyInstaller builds (#5421)

This commit is contained in:
Mike Fährmann
2024-04-06 03:24:51 +02:00
parent 86a97d8e27
commit 9a8403917a
5 changed files with 36 additions and 10 deletions

View File

@@ -172,7 +172,7 @@ class ExecTest(BasePostprocessorTest):
"command": "echo {} {_path} {_directory} {_filename} && rm {};",
})
with patch("subprocess.Popen") as p:
with patch("gallery_dl.util.Popen") as p:
i = Mock()
i.wait.return_value = 0
p.return_value = i
@@ -192,7 +192,7 @@ class ExecTest(BasePostprocessorTest):
"\fE _directory.upper()"],
})
with patch("subprocess.Popen") as p:
with patch("gallery_dl.util.Popen") as p:
i = Mock()
i.wait.return_value = 0
p.return_value = i
@@ -212,7 +212,7 @@ class ExecTest(BasePostprocessorTest):
"command": "echo {}",
})
with patch("subprocess.Popen") as p:
with patch("gallery_dl.util.Popen") as p:
i = Mock()
i.wait.return_value = 123
p.return_value = i
@@ -230,7 +230,7 @@ class ExecTest(BasePostprocessorTest):
"command": "echo {}",
})
with patch("subprocess.Popen") as p:
with patch("gallery_dl.util.Popen") as p:
i = Mock()
p.return_value = i
self._trigger(("after",))