summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-27 17:10:19 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-26 15:38:23 +0000
commit38bbbb4ee19e2be5461b267da71c528d3fa1d0d0 (patch)
tree5c2a133987e6c27d0f1d4aeae35d6c215f4f2873 /scripts
parent19a3f1ba470c38c4bb18f01efd01673f063b002f (diff)
downloadpoky-38bbbb4ee19e2be5461b267da71c528d3fa1d0d0.tar.gz
poky-38bbbb4ee19e2be5461b267da71c528d3fa1d0d0.tar.bz2
poky-38bbbb4ee19e2be5461b267da71c528d3fa1d0d0.zip
resulttool/report: Ensure ptest results are sorted
(From OE-Core rev: 2e3ffad9e97c5f757e1457721308eb8da63bcabf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/resulttool/template/test_report_full_text.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/resulttool/template/test_report_full_text.txt b/scripts/lib/resulttool/template/test_report_full_text.txt
index 5081594cf2..590f35c7dd 100644
--- a/scripts/lib/resulttool/template/test_report_full_text.txt
+++ b/scripts/lib/resulttool/template/test_report_full_text.txt
@@ -16,7 +16,7 @@ PTest Result Summary
--------------------------------------------------------------------------------------------------------------
{{ 'Recipe'.ljust(maxlen['ptest']) }} | {{ 'Passed'.ljust(maxlen['passed']) }} | {{ 'Failed'.ljust(maxlen['failed']) }} | {{ 'Skipped'.ljust(maxlen['skipped']) }} | {{ 'Time(s)'.ljust(10) }}
--------------------------------------------------------------------------------------------------------------
-{% for ptest in ptests %}
+{% for ptest in ptests |sort %}
{{ ptest.ljust(maxlen['ptest']) }} | {{ (ptests[ptest]['passed']|string).ljust(maxlen['passed']) }} | {{ (ptests[ptest]['failed']|string).ljust(maxlen['failed']) }} | {{ (ptests[ptest]['skipped']|string).ljust(maxlen['skipped']) }} | {{ (ptests[ptest]['duration']|string) }}
{% endfor %}
--------------------------------------------------------------------------------------------------------------