From 5c7209c3ca5e3d7de8808d05ae7282344a5b855c Mon Sep 17 00:00:00 2001 From: Nikita Menkovich Date: Thu, 9 Jan 2025 11:33:31 +0100 Subject: [PATCH 1/2] fix: add /index.html suffix to DIR url in summary --- .github/scripts/tests/generate-summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/tests/generate-summary.py b/.github/scripts/tests/generate-summary.py index b8274ee0f7d..ef875f55ada 100755 --- a/.github/scripts/tests/generate-summary.py +++ b/.github/scripts/tests/generate-summary.py @@ -81,7 +81,7 @@ def from_junit(cls, testcase): status = TestStatus.PASS log_urls = { - "DIR": get_property_value(testcase, "url:logs_directory"), + "DIR": get_property_value(testcase, "url:logs_directory") + '/index.html', "Log": get_property_value(testcase, "url:Log"), "log": get_property_value(testcase, "url:log"), "stdout": get_property_value(testcase, "url:stdout"), From cf4634294ea988c9322578a9c37d4a71ccd0e89b Mon Sep 17 00:00:00 2001 From: Nikita Menkovich Date: Thu, 9 Jan 2025 12:10:42 +0100 Subject: [PATCH 2/2] fix: add /index.html suffix to DIR url in summary --- .github/scripts/tests/generate-summary.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/scripts/tests/generate-summary.py b/.github/scripts/tests/generate-summary.py index ef875f55ada..10c43da3fb6 100755 --- a/.github/scripts/tests/generate-summary.py +++ b/.github/scripts/tests/generate-summary.py @@ -80,8 +80,12 @@ def from_junit(cls, testcase): else: status = TestStatus.PASS + logs_directory = get_property_value(testcase, "url:logs_directory") + if logs_directory is not None: + logs_directory = f"{logs_directory}/index.html" + log_urls = { - "DIR": get_property_value(testcase, "url:logs_directory") + '/index.html', + "DIR": logs_directory, "Log": get_property_value(testcase, "url:Log"), "log": get_property_value(testcase, "url:log"), "stdout": get_property_value(testcase, "url:stdout"),