From 88d1fe1fdf8ce1516e8706100028a35ce0347e3f Mon Sep 17 00:00:00 2001 From: Roland Haas Date: Tue, 10 Jan 2023 16:41:25 -0600 Subject: [PATCH] logpage: stay in iframe if embedded for latest build link --- logpage.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/logpage.py b/logpage.py index e83e505c447..6a016c6a103 100644 --- a/logpage.py +++ b/logpage.py @@ -409,7 +409,10 @@ def create_test_results(readfile): Build #{curr_ver}
- Go to latest build + Go to latest build +

{build_date}

@@ -453,6 +456,11 @@ def summary_to_html(readfile,writefile): sidebar_template = create_sidebar() with open(writefile,"w") as fp: curr_build_file = create_test_results(readfile) + try: + os.remove(f"{gh_pages}/docs/build.html") + except FileNotFoundError: + pass + os.symlink(curr_build_file, f"{gh_pages}/docs/build.html") # The formatted string holds the html template and loads in the values for content and status # This templated gets injected to index.html, holding both the sidebar and test results @@ -518,7 +526,7 @@ def summary_to_html(readfile,writefile): - +