Skip to content

Commit 2cc2db7

Browse files
committed
Pass through SSH_ env vars to tox envs
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.
1 parent cd052b2 commit 2cc2db7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ env_list = py{37,38,39,310,311,312}, lint, mypy, black
66
description = Run unit tests
77
package = wheel
88
extras = test
9+
pass_env = SSH_*
910
commands = pytest --color=yes {posargs}
1011

1112
[testenv:lint]

0 commit comments

Comments
 (0)