aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-08-11 10:54:27 +0200
committerMichał Górny <mgorny@gentoo.org>2011-08-11 10:54:27 +0200
commit6cd3f23af97c0b0c15463702288a1d5a644c607c (patch)
tree5e0ac36bae3e24857d5fdb64b3e7c9a5ed786b58
parentUse short test names in HTML output (instead of direct classes). (diff)
downloadpms-test-suite-6cd3f23af97c0b0c15463702288a1d5a644c607c.tar.gz
pms-test-suite-6cd3f23af97c0b0c15463702288a1d5a644c607c.tar.bz2
pms-test-suite-6cd3f23af97c0b0c15463702288a1d5a644c607c.zip
HTML: order tests by short name.
-rw-r--r--pmstestsuite/output/html.py5
1 files 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