Section substitution doesn't work in setenv
#3262
Labels
help:wanted
Issues that have been acknowledged, a solution determined and a PR might likely be accepted.
Issue
setenv
variables are not available when runningcommands
from a tox test environment, if the variables were defined using Substitution for values from other sections.That seems some kind of caching issue, as during some debugging I found that removing this IF statement makes
tox
work as I would expect.I'm providing a small reproducible below.
That reproducible defines 3 environment variables through
setenv
: one directly, and 2 through substitution.Only the variable defined directly is available when running
bash
fromcommands
, while the ones defined through substitution are not available.If we check the output of
tox config
, we can see all of the 3 variables correctly defined. And as I mentioned above, if I remove thatIF
statement, making it always update the variables onenvironment_variables
property call, then all the 3 variables are available when runningbash
.Environment
Provide at least:
Output of
pip list
of the host Python, wheretox
is installedOutput of running tox
Output of
tox -rvv
Minimal example
tox.ini
content:tox run
:tox config
:The text was updated successfully, but these errors were encountered: