{envtmpdir} is not created by default. However if it's already present, it's deleted and recreated. This behavior is possibly confusing.
An example:
-
- Currently, on the very first tox run, the envtmpdir is not existent.
- In this example a command creates the envtmpdir; it succeeds.
-
- On the second run, tox clears (i.e. deletes and recreates) the envtmpdir.
- The command, like in the previous run, tries to create the envtmpdir, but it fails because it's already existent.
I see two solutions to provide a consistent environment on each test run.
- (Re-)create the envtmpdir before each tox run.
- Delete the envtmpdir before each tox run, without recreating it.
Solution 1 would be more convenient, as it saves the user from manually adding a command to every testenv to create the directory. However a configuration using the recreate option could rely on that the envtmpdir never exists when run.
{envtmpdir}is not created by default. However if it's already present, it's deleted and recreated. This behavior is possibly confusing.An example:
I see two solutions to provide a consistent environment on each test run.
Solution 1 would be more convenient, as it saves the user from manually adding a command to every testenv to create the directory. However a configuration using the
recreateoption could rely on that the envtmpdir never exists when run.