Skip to content

Commit 20ba28a

Browse files
authored
fix: clean-alluredir FileNotFoundError when run test with xdist (#809)
1 parent cdae0ba commit 20ba28a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

allure-python-commons/src/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class AllureFileLogger:
1515
def __init__(self, report_dir, clean=False):
1616
self._report_dir = Path(report_dir).absolute()
1717
if self._report_dir.is_dir() and clean:
18-
shutil.rmtree(self._report_dir)
18+
shutil.rmtree(self._report_dir, ignore_errors=True)
1919
self._report_dir.mkdir(parents=True, exist_ok=True)
2020

2121
def _report_item(self, item):

0 commit comments

Comments
 (0)