From 1b2601b04b8bf801ecbc005badf4944f1d75dd09 Mon Sep 17 00:00:00 2001 From: Anderson Chauphan Date: Tue, 6 Feb 2024 15:22:37 -0700 Subject: [PATCH] Fix declaration position of defaultPageStyle var (#600) --- .../ci_support/cdash_analyze_and_report_random_failures.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tribits/ci_support/cdash_analyze_and_report_random_failures.py b/tribits/ci_support/cdash_analyze_and_report_random_failures.py index 336c22cd2..a09ed5e6f 100755 --- a/tribits/ci_support/cdash_analyze_and_report_random_failures.py +++ b/tribits/ci_support/cdash_analyze_and_report_random_failures.py @@ -262,9 +262,10 @@ def main(): # Finish HTML body paragraph cdashReportData.htmlEmailBodyTop += "\n

" + defaultPageStyle = CDQAR.getDefaultHtmlPageStyleStr() + if writeEmailToFile: print("\nWriting HTML to file: "+writeEmailToFile+" ...") - defaultPageStyle = CDQAR.getDefaultHtmlPageStyleStr() htmlStr = CDQAR.getFullCDashHtmlReportPageStr(cdashReportData, pageTitle=summaryLine, pageStyle=defaultPageStyle) # print(htmlStr) @@ -278,8 +279,7 @@ def main(): emailAddress = emailAddress.strip() print("\nSending email to '"+emailAddress+"' ...") msg=CDQAR.createHtmlMimeEmail( - sendEmailFrom, emailAddress, summaryLine, "", - htmlStr) + sendEmailFrom, emailAddress, summaryLine, "", htmlStr) CDQAR.sendMineEmail(msg)