<#19280 Test extra_env_vars option not overlaying ...
# github-notifications
c
#19280 Test extra_env_vars option not overlaying the environment-specific subprocess-environment env_vars Issue created by daniel-westerfeld Describe the bug I am trying to use pants to execute python tests. I am quite new to pants so please be patient. I defined a local_environment in my top leven BUILD file:
Copy code
local_environment(
    name="local-environment",
    subprocess_environment_env_vars=env_vars_devcontainer(),
)
where th subprocesse environment variables are defined in my macros.py. Furthermode I added this environment to my pants.toml:
Copy code
[environments-preview.names]
local = "//:local-environment"
In my local environment I defined an environment variable, let's call it ENV_VAR=true. I want this environment variable to have a different value for tests, so I add
Copy code
[test]
extra_env_vars = ["ENV_VAR=false"]
in the pants.toml but that is somehow ignored by pants. ENV_VAR is still on true, when I run
pants test
Pants version Which version of Pants are you using? 2.16.0rc5 OS Are you encountering the bug on MacOS, Linux, or both? Linux Additional info Add any other information about the problem here, such as attachments or links to gists, if relevant. pantsbuild/pants