diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2021-05-11 15:30:12 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2021-05-11 15:30:12 +0100 |
commit | 07c6bf165d0e414da3827c7b2aebf5044a7e6093 (patch) | |
tree | 5fc1f0470403572cc93206a7c6b9ceb3fe701c9a /test | |
parent | a17f7e03d4c34f3dc7cf71ee25c6efc337949d99 (diff) | |
download | unit-07c6bf165d0e414da3827c7b2aebf5044a7e6093.tar.gz unit-07c6bf165d0e414da3827c7b2aebf5044a7e6093.tar.bz2 |
Tests: temporary dir removed after tests execution.
Diffstat (limited to 'test')
-rw-r--r-- | test/conftest.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/conftest.py b/test/conftest.py index a084953a..c2781571 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -671,4 +671,10 @@ def pytest_sessionfinish(session): option.restart = True unit_stop() + + public_dir(option.cache_dir) shutil.rmtree(option.cache_dir) + + if not option.save_log: + public_dir(option.temp_dir) + shutil.rmtree(option.temp_dir) |