Created
December 8, 2017 15:43
-
-
Save rienafairefr/f76de192eaced675cc96502252db108f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We have a weird regression, and I think what I will show is an unexpected behavior of tox. The project is way more complicated, but this simple example exhibits the problem: | |
the project folder is empty except | |
tox.ini: | |
[tox] | |
skipsdist = true | |
[testenv] | |
whitelist_externals = | |
/bin/bash | |
commands = | |
bash -c "echo $USER" | |
Which results in | |
root@m3-17:/tmp/tox-pb# tox | |
python installed: wsgiref==0.1.2 | |
python runtests: PYTHONHASHSEED='3044433004' | |
python runtests: commands[0] | bash -c echo $USER | |
___________________________________ summary ____________________________________ | |
python: commands succeeded | |
congratulations :) | |
The command launched by tox has the environment variable empty. | |
I'm aware that `passenv` might be used here, but the issue appeared suddenly without us changing anything in the tox.ini | |
Maybe the tox version changed though, but I | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment