Skip to content

{envtmpdir} not created by default, unless already present #399

@manueljacob

Description

@manueljacob

{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.

  1. (Re-)create the envtmpdir before each tox run.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions