aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/core
diff options
context:
space:
mode:
Diffstat (limited to 'xtesting/core')
-rw-r--r--xtesting/core/pytest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/xtesting/core/pytest.py b/xtesting/core/pytest.py
index a47ab551..a6735f17 100644
--- a/xtesting/core/pytest.py
+++ b/xtesting/core/pytest.py
@@ -12,6 +12,8 @@
import contextlib
import io
import logging
+import os
+import shutil
import time
import pytest
@@ -69,10 +71,13 @@ class Pytest(testcase.TestCase):
status = self.EX_RUN_ERROR
self.start_time = time.time()
try:
+ if os.path.exists(os.path.join(self.dir_results, self.case_name)):
+ shutil.rmtree(os.path.join(self.dir_results, self.case_name))
pydir = kwargs.pop('dir')
options = kwargs.pop('options', {})
options['html'] = f'{self.res_dir}/results.html'
options['junitxml'] = f'{self.res_dir}/results.xml'
+ options['p'] = 'no:cacheprovider'
if 'tb' not in options:
options['tb'] = 'no'
options = [