From 45615075664f819b1f039ea5e4a7b06d559767b4 Mon Sep 17 00:00:00 2001 From: Milo Casagrande Date: Wed, 15 Apr 2015 10:46:34 +0200 Subject: Add errors summary to build TXT template. --- app/utils/report/templates/build.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/app/utils/report/templates/build.txt b/app/utils/report/templates/build.txt index 5120c90..78542d0 100644 --- a/app/utils/report/templates/build.txt +++ b/app/utils/report/templates/build.txt @@ -34,6 +34,26 @@ {% endfor %}{# arch #} {%- endif %}{# end error_data #} {%- endif %}{# end platforms #} +{%- if errors_summary %} +{% if errors_summary.errors %} +Errors summary: +{% for err in errors_summary.errors %} + {{ "{:>3d} {:s}".format(err[0], err[1]) -}} +{% endfor %} +{%- endif %}{# end errors #} +{% if errors_summary.warnings %} +Warnings summary: +{% for warn in errors_summary.warnings %} + {{ "{:>3d} {:s}".format(warn[0], warn[1]) -}} +{% endfor %} +{%- endif %}{# end warnings #} +{%- endif %}{# and errors summary #} +{% if errors_summary.mismatches %} +Mismatches summary: +{% for mism in errors_summary.mismatches %} + {{ "{:>3d} {:s}".format(mism[0], mism[1]) -}} +{% endfor %} +{% endif %}{# end warnings #} {%- if info_email %} --- For more info write to <{{ info_email }}> -- cgit v1.2.3