mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-16 02:51:28 +08:00
Remove LD_LIBRARY_PATH before running gdb (#13594)
Suggestion by @peace-maker
This commit is contained in:
1 parent
a91c147f80
commit
b4c656a6f7
2 files changed
+3
-3
No files matched your search
@@ -252,6 +252,9 @@ def setup_gdb_stubtest_command(venv_dir: Path, stubtest_cmd: list[str]) -> bool:
|
||||
import sys
|
||||
|
||||
stubtest_env = os.environ | {{"STUBTEST_ARGS": json.dumps(sys.argv)}}
|
||||
# With LD_LIBRARY_PATH set, some GitHub action runners look in the wrong
|
||||
# location for gdb, causing stubtest to fail.
|
||||
stubtest_env.pop("LD_LIBRARY_PATH", None)
|
||||
gdb_cmd = [
|
||||
"gdb",
|
||||
"--quiet",
|
||||
|
||||
Reference in new issue
Block a user