From 6d7091c224bd1dc469c09c41c6992b712428830b Mon Sep 17 00:00:00 2001 From: "Mikhail f. Shiryaev" Date: Tue, 15 Oct 2024 13:41:22 +0200 Subject: [PATCH] Add report file to the test results --- tests/ci/sqltest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/ci/sqltest.py b/tests/ci/sqltest.py index 34a204746ae..b3e4233f654 100644 --- a/tests/ci/sqltest.py +++ b/tests/ci/sqltest.py @@ -86,17 +86,18 @@ def main(): logging.info("Run failed") subprocess.check_call(f"sudo chown -R ubuntu:ubuntu {temp_path}", shell=True) + report_file_path = workspace_path / "report.html" paths = { "run.log": run_log_path, "server.log.zst": workspace_path / "server.log.zst", "server.err.log.zst": workspace_path / "server.err.log.zst", - "report.html": workspace_path / "report.html", + "report.html": report_file_path, "test.log": workspace_path / "test.log", } status = SUCCESS description = "See the report" - test_results = [TestResult(description, "OK")] + test_results = [TestResult(description, "OK", log_files=[report_file_path])] JobReport( description=description,