mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 22:10:10 +08:00
Remove LD_LIBRARY_PATH before running gdb (#13594)
Suggestion by @peace-maker
This commit is contained in:
@@ -13,6 +13,3 @@ extra_description = """\
|
||||
[tool.stubtest]
|
||||
platforms = ["linux"]
|
||||
apt_dependencies = ["gdb"]
|
||||
# TODO (2025-03-05): unskip once `gdb` can be installed on `ubuntu-24.04`,
|
||||
# see https://github.com/python/typeshed/pull/13582
|
||||
skip = true
|
||||
|
||||
@@ -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