Skip to content

Commit

Permalink
Pass through SSH_ env vars to tox envs
Browse files Browse the repository at this point in the history
This fixes a problem where the tests for fetching a nonexistent ref
prompt like "Enter passphrase for key '/home/USERNAME/.ssh/id_rsa':"
and block, if the repository on the machine where the tests are
being run has the remote set up using an SSH URL.

This passes through all environment variables whose names start
with SSH_, even though it should be enough to pass SSH_AGENT_PID
and SSH_AUTH_SOCK through, at least for this particular issue.
  • Loading branch information
EliahKagan committed Sep 18, 2023
1 parent cd052b2 commit 2cc2db7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env_list = py{37,38,39,310,311,312}, lint, mypy, black
description = Run unit tests
package = wheel
extras = test
pass_env = SSH_*
commands = pytest --color=yes {posargs}

[testenv:lint]
Expand Down

0 comments on commit 2cc2db7

Please sign in to comment.