]> code.ossystems Code Review - openembedded-core.git/commitdiff
resulttool/report: Ensure ptest results are sorted
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 Feb 2019 17:10:19 +0000 (17:10 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 24 Mar 2019 16:53:22 +0000 (16:53 +0000)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/resulttool/template/test_report_full_text.txt

index 5081594cf271085d0131ba58f003e29776d407a9..590f35c7dd842c8ff4cd4103119199fe93b89d16 100644 (file)
@@ -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 %}
 --------------------------------------------------------------------------------------------------------------