summaryrefslogtreecommitdiffhomepage
path: root/test/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/conftest.py')
-rw-r--r--test/conftest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/conftest.py b/test/conftest.py
index c14e3f68..c2a320de 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -69,6 +69,9 @@ def pytest_configure(config):
option.architecture = platform.architecture()[0]
option.system = platform.system()
+ option.cache_dir = tempfile.mkdtemp(prefix='unit-test-cache-')
+ public_dir(option.cache_dir)
+
# set stdout to non-blocking
if option.detailed or option.print_log:
@@ -434,3 +437,4 @@ def is_su(request):
def pytest_sessionfinish(session):
unit_stop()
+ shutil.rmtree(option.cache_dir)