Skip to content

Commit

Permalink
Remove LD_LIBRARY_PATH before running gdb (#13594)
Browse files Browse the repository at this point in the history
Suggestion by @peace-maker
  • Loading branch information
srittau authored Mar 7, 2025
1 parent a91c147 commit b4c656a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions stubs/gdb/METADATA.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions tests/stubtest_third_party.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b4c656a

Please sign in to comment.