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-02-27 18:03:44 +0000
commit3ec9a6288793f384bf108d7194cf50147485fa28 (patch)
tree43e99a9038adb61dda046dbafbddfe9066a54aec /scripts
parent58268151704246a81ec8dae46c26346023057554 (diff)
downloadopenembedded-core-contrib-3ec9a6288793f384bf108d7194cf50147485fa28.tar.gz
openembedded-core-contrib-3ec9a6288793f384bf108d7194cf50147485fa28.tar.bz2
openembedded-core-contrib-3ec9a6288793f384bf108d7194cf50147485fa28.zip
resulttool/report: Ensure ptest results are sorted
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 %}
--------------------------------------------------------------------------------------------------------------