Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2cc2db7

Browse files
committed
Pass through SSH_ env vars to tox envs
This fixes a problem where the tests for fetching a nonexistent refprompt like "Enter passphrase for key '/home/USERNAME/.ssh/id_rsa':"and block, if the repository on the machine where the tests arebeing run has the remote set up using an SSH URL.This passes through all environment variables whose names startwith SSH_, even though it should be enough to pass SSH_AGENT_PIDand SSH_AUTH_SOCK through, at least for this particular issue.
1 parentcd052b2 commit2cc2db7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎tox.ini

Lines changed: 1 addition & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp