summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2016-01-12 14:42:02 +0100
committerChristophe Lyon <christophe.lyon@linaro.org>2016-01-12 14:58:40 +0100
commitabeb4f9e0daa659474ee0138656526ffa5a8a4a1 (patch)
treeb1fb07177a47d6a0eb0047834cbbf4834e133c23
parentae7e47a8e32429fb965c3e640bd39f7e5f2edfe8 (diff)
compare_jobs.sh: Concatenate all diff-* reports after the main report table.
Change-Id: Ie598bde0215fec06f7036fe48ffc65919ee58d30
-rwxr-xr-xcompare_jobs.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/compare_jobs.sh b/compare_jobs.sh
index 3684717..eb752ca 100755
--- a/compare_jobs.sh
+++ b/compare_jobs.sh
@@ -171,6 +171,11 @@ html_report_print_header > ${HTML_REPORT}.part
xml_log_print_header > ${XML_LOG}.part
html_log_print_header > ${HTML_LOG}.part
+# Gather all diffs, to concatenate them to the main report
+difflog=${mydir}/alldiffs.txt
+rm -f ${difflog}
+touch ${difflog}
+
for buildtarget in ${buildtargets}
do
ref="${ref_logs}/${buildtarget}"
@@ -222,12 +227,20 @@ do
html_report_print_row "${buildtarget}" "$color" "$message" >> $HTML_REPORT.part
xml_log_print_field "${buildtarget}" ${mylog} >> $XML_LOG.part
html_log_print_field "${buildtarget}" ${mylog} >> $HTML_LOG.part
+
+ cat ${mylog} >> ${difflog}
done
xml_report_print_footer >> ${XML_REPORT}.part
html_report_print_footer >> ${HTML_REPORT}.part
xml_log_print_footer >> ${XML_LOG}.part
html_log_print_footer >> ${HTML_LOG}.part
+
+echo "<pre>" >> ${HTML_REPORT}.part
+cat ${difflog} >> ${HTML_REPORT}.part
+rm -f ${difflog}
+echo "</pre>" >> ${HTML_REPORT}.part
+
mv ${XML_REPORT}.part ${XML_REPORT}
mv ${HTML_REPORT}.part ${HTML_REPORT}
mv ${XML_LOG}.part ${XML_LOG}