aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2015-04-15 10:46:34 +0200
committerMilo Casagrande <milo.casagrande@linaro.org>2015-04-15 10:46:34 +0200
commit45615075664f819b1f039ea5e4a7b06d559767b4 (patch)
tree1374e978b1e5f9ee9e1607fb5da153b8629b3c0c
parent3920e3051b788655ff5cb15067bd4302a38f21c8 (diff)
Add errors summary to build TXT template.
-rw-r--r--app/utils/report/templates/build.txt20
1 files changed, 20 insertions, 0 deletions
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 }}>