Skip to content

Commit

Permalink
fix: clean-alluredir FileNotFoundError when run test with xdist
Browse files Browse the repository at this point in the history
  • Loading branch information
hokor committed Apr 18, 2024
1 parent d857349 commit e445aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allure-python-commons/src/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AllureFileLogger:
def __init__(self, report_dir, clean=False):
self._report_dir = Path(report_dir).absolute()
if self._report_dir.is_dir() and clean:
shutil.rmtree(self._report_dir)
shutil.rmtree(self._report_dir, ignore_errors=True)
self._report_dir.mkdir(parents=True, exist_ok=True)

def _report_item(self, item):
Expand Down

0 comments on commit e445aa1

Please sign in to comment.