From: Markus Lehtonen Date: Mon, 3 Apr 2017 15:58:34 +0000 (+0300) Subject: scripts/oe-build-perf-report: fix 'charts ready' console message X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~21760 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79b90ae02257002ea831a48f6798794b7711c1f8;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git scripts/oe-build-perf-report: fix 'charts ready' console message The javascript console log messages are used in scraping, when converting an html test report to html email. Before this patch a console message indicating that all charts have been drawn was not correctly sent if the last test failed (or didn't have chart data for some other reason) which, in turn, caused oe-build-perf-report-email.py script to fail with a timeout. Signed-off-by: Markus Lehtonen Signed-off-by: Ross Burton --- diff --git a/scripts/lib/build_perf/html/measurement_chart.html b/scripts/lib/build_perf/html/measurement_chart.html index 26fe1453c09..65f1a227adf 100644 --- a/scripts/lib/build_perf/html/measurement_chart.html +++ b/scripts/lib/build_perf/html/measurement_chart.html @@ -1,4 +1,5 @@ {# Render measurement result charts #} {% for test in test_data %} - {% set test_loop = loop %} {% if test.status == 'SUCCESS' %} {% for measurement in test.measurements %} {% set chart_elem_id = test.name + '_' + measurement.name + '_chart' %} - {% if test_loop.last and loop.last %} - {% set last_chart = true %} - {% endif %} {% include 'measurement_chart.html' %} {% endfor %} {% endif %}