Skip to content

Commit

Permalink
Warn about --basetemp removing the entire directory (#7555)
Browse files Browse the repository at this point in the history
Co-authored-by: mattreex <mattreex.9@gail.com>
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
(cherry picked from commit 1e66ed0)
  • Loading branch information
mysterious-progression authored and nicoddemus committed Jul 29, 2020
1 parent e876157 commit 2d5b8a8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions doc/en/tmpdir.rst
Expand Up @@ -192,8 +192,13 @@ You can override the default temporary directory setting like this:
pytest --basetemp=mydir
When distributing tests on the local machine, ``pytest`` takes care to
configure a basetemp directory for the sub processes such that all temporary
.. warning::

The contents of ``mydir`` will be completely removed, so make sure to use a directory
for that purpose only.

When distributing tests on the local machine using ``pytest-xdist``, care is taken to
automatically configure a basetemp directory for the sub processes such that all temporary
data lands below a single per-test run basetemp directory.

.. _`py.path.local`: https://py.readthedocs.io/en/latest/path.html

0 comments on commit 2d5b8a8

Please sign in to comment.