From cefe51d4cb3e5cdebbae756cf7d6be5e0d618bef Mon Sep 17 00:00:00 2001 From: Benjamin Pelletier Date: Sun, 17 Sep 2023 15:44:36 +0000 Subject: [PATCH] Do not delete path --- monitoring/uss_qualifier/reports/tested_requirements.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/monitoring/uss_qualifier/reports/tested_requirements.py b/monitoring/uss_qualifier/reports/tested_requirements.py index 3118f9ddfa..7fdc1a7188 100644 --- a/monitoring/uss_qualifier/reports/tested_requirements.py +++ b/monitoring/uss_qualifier/reports/tested_requirements.py @@ -152,10 +152,8 @@ def generate_tested_requirements(report: TestRunReport, output_path: str) -> Non import_submodules(suites) import_submodules(action_generators) - if os.path.exists(output_path): - shutil.rmtree(output_path) + os.makedirs(output_path, exist_ok=True) index_file = os.path.join(output_path, "index.html") - os.makedirs(os.path.dirname(index_file), exist_ok=True) participant_ids = report.report.participant_ids() template = jinja_env.get_template("tested_requirements/test_run_report.html")