scripts/coverage.py: correct the coverage report path

the `path/name` directory is not exist and needs to be created first.

Signed-off-by: libo-sober <libo_sober@163.com>

Closes scylladb/scylladb#25480
This commit is contained in:
libo2_yewu
2025-08-13 14:40:11 +08:00
committed by Botond Dénes
parent 41475858aa
commit fa84e20b7a

View File

@@ -151,6 +151,7 @@ def generate_coverage_report(path="build/coverage/test", name="tests", input_fil
subprocess.check_call(["llvm-cov", "export", "-format=lcov", f"-instr-profile={profdata_path}"] + [f"-object={exe}" for exe in test_executables], stdout=f)
html_report_path = os.path.join(path, f"{name}")
os.makedirs(html_report_path, exist_ok=True)
html_report_url = os.path.abspath(os.path.join(html_report_path, "index.html"))
maybe_print(f"Generating html report in {html_report_path}")