New issue 301: {env:} macro is not expanded in setenv if the default value 
contains {envdir}
https://bitbucket.org/hpk42/tox/issues/301/env-macro-is-not-expanded-in-setenv-if-the

Ihar Hrachyshka:

The following tox target will not expand {env:} macro with the default value 
(the substitution for {envdir}):

[testenv:dsvm-functional]
setenv = OS_ROOTWRAP_CMD={env:OS_ROOTWRAP_CMD:{envdir}}
commands =
  env

$ tox -e dsvm-functional
...
OS_ROOTWRAP_CMD={env:OS_ROOTWRAP_CMD:/home/vagrant/git/neutron-vpnaas/.tox/dsvm-functional}
...

Once I replace {envdir} with a hardcoded value, it expands {env:} correctly 
using the default value.

[testenv:dsvm-functional]
setenv = OS_ROOTWRAP_CMD={env:OS_ROOTWRAP_CMD:XXX}
commands =
  env

$ tox -e dsvm-functional
...
OS_ROOTWRAP_CMD=XXX
...


_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to