Skip to content

Let Starlark tests inherit env variables#14849

Closed
fmeum wants to merge 5 commits intobazelbuild:masterfrom
fmeum:starlark-env-inherit
Closed

Let Starlark tests inherit env variables#14849
fmeum wants to merge 5 commits intobazelbuild:masterfrom
fmeum:starlark-env-inherit

Conversation

@fmeum
Copy link
Copy Markdown
Collaborator

@fmeum fmeum commented Feb 17, 2022

Adds an inherited_environment field to testing.TestEnvironment to allow
Starlark rules to implement the equivalent of the native rules'
env_inherit attribute.

Work towards #7364. To fully resolve that issue, it remains to handle
executable non-test rules.

RELNOTES: Starlark test rules can use the new inherited_environment
parameter of testing.TestEnvironment to specify environment variables
whose values should be inherited from the shell environment.

Loading
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.

7 participants