From fa84e20b7ab380ca8fc688e8f282bd73b20d7773 Mon Sep 17 00:00:00 2001 From: libo2_yewu Date: Wed, 13 Aug 2025 14:40:11 +0800 Subject: [PATCH] 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 Closes scylladb/scylladb#25480 --- scripts/coverage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/coverage.py b/scripts/coverage.py index b0a0b9908d..d2c5c53abe 100755 --- a/scripts/coverage.py +++ b/scripts/coverage.py @@ -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}")