From 6cd3f23af97c0b0c15463702288a1d5a644c607c Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 11 Aug 2011 10:54:27 +0200 Subject: HTML: order tests by short name. --- pmstestsuite/output/html.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pmstestsuite/output/html.py b/pmstestsuite/output/html.py index 749f95e..78599db 100644 --- a/pmstestsuite/output/html.py +++ b/pmstestsuite/output/html.py @@ -80,7 +80,8 @@ class HTMLOutput(OutputModule): ret = defaultdict(dict) for t, r in reorderedresults.items(): ret[t.short_name][t] = r - return ret + for cl in sorted(ret): + yield cl, ret[cl] def _sorted_pms(pms): for pm in sorted(pms, key = lambda pm: mypms.index(pm)): @@ -163,7 +164,7 @@ class HTMLOutput(OutputModule): maxcol = 6 + i*2 row = 2 - for cl, tests in _results_by_class(results).items(): + for cl, tests in _results_by_class(results): table[row][0] = cl for t in sorted(tests, key = lambda t: t.eapi): table[row][1] = t.eapi -- cgit v1.2.3-65-gdbad