From 10883bb49ad2f5309883fd352cf320b2e1648615 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 15 Sep 2017 15:54:55 +0300 Subject: scripts/oe-build-perf-report: tidy up html syntax Fix some problems in the html syntax of the generated report: - prevent empty rows in the summary table - add one missing column in the results table Signed-off-by: Markus Lehtonen Signed-off-by: Ross Burton --- scripts/lib/build_perf/html/report.html | 36 ++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 16 deletions(-) (limited to 'scripts/lib') diff --git a/scripts/lib/build_perf/html/report.html b/scripts/lib/build_perf/html/report.html index 165cbb811c..f983a4a09c 100644 --- a/scripts/lib/build_perf/html/report.html +++ b/scripts/lib/build_perf/html/report.html @@ -118,29 +118,32 @@ h3 { {% else %} {% set row_style = 'style="background-color: #ffffff"' %} {% endif %} - {{ test.name }}: {{ test.description }} {% if test.status == 'SUCCESS' %} {% for measurement in test.measurements %} - {# add empty cell in place of the test name#} - {% if loop.index > 1 %}{% endif %} - {% if measurement.absdiff > 0 %} - {% set result_style = "color: red" %} - {% elif measurement.absdiff == measurement.absdiff %} - {% set result_style = "color: green" %} - {% else %} - {% set result_style = "color: orange" %} - {%endif %} - {{ measurement.description }} - {{ measurement.value.mean }} - {{ measurement.absdiff_str }} - {{ measurement.reldiff }} - + + {% if loop.index == 1 %} + {{ test.name }}: {{ test.description }} + {% else %} + {# add empty cell in place of the test name#} + + {% endif %} + {% if measurement.absdiff > 0 %} + {% set result_style = "color: red" %} + {% elif measurement.absdiff == measurement.absdiff %} + {% set result_style = "color: green" %} + {% else %} + {% set result_style = "color: orange" %} + {%endif %} + {{ measurement.description }} + {{ measurement.value.mean }} + {{ measurement.absdiff_str }} + {{ measurement.reldiff }} + {% endfor %} {% else %} {{test.status }} {% endif %} - {% endfor %} @@ -186,6 +189,7 @@ h3 { Stdev{{ measurement.value.stdev }}
+ -- cgit 1.2.3-korg