Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass env variables from vstest to debugger #5137

Merged
merged 2 commits into from
Apr 1, 2022

Conversation

nohwnd
Copy link
Member

@nohwnd nohwnd commented Mar 31, 2022

Fix #5131

Passes on env variables from the test request to the debugger.

@@ -333,7 +333,8 @@ export default class TestManager extends AbstractProvider {
debuggerEventsPipeName: debuggerEventsPipeName,
program: program,
args: args,
cwd: cwd
cwd: cwd,
env: environmentVariables,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gregg-miskelly please review, I am not sure if I need to do additional merging on the existing result which is a collection of debugger config, over which the new configuration is spread. Can it have env on it already?

Copy link
Contributor

@gregg-miskelly gregg-miskelly Mar 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, you shouldn't need to. It is not valid according to the schema (see here).

@nohwnd nohwnd merged commit a5d8fd6 into dotnet:master Apr 1, 2022
@nohwnd nohwnd deleted the pass-env-variables-on-test-debug branch April 1, 2022 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debug Test can't receive DYLD_LIBRARY_PATH variable in macOS.
3 participants