Skip to content

Commit

Permalink
fix: clean-alluredir FileNotFoundError when run test with xdist (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
hokor authored May 23, 2024
1 parent cdae0ba commit 20ba28a
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 20ba28a

Please sign in to comment.