aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 abcd5af..f423d8f 100644
--- a/pmstestsuite/output/html.py
+++ b/pmstestsuite/output/html.py
@@ -183,12 +183,13 @@ class HTMLOutput(OutputModule):
col = 5
for pm, r in _sorted_pms(tests[t]):
table[row][col+1] = BoolCell(r)
- for a in r.assertions:
+ for ai, a in enumerate(r.assertions):
if a.name not in test_asserts:
test_asserts.append(a.name)
crow = row + test_asserts.index(a.name)
if a.prefix is not None:
- table[crow][2] = a.prefix
+ if ai == 0 or table[crow-1][2] != a.prefix:
+ table[crow][2] = a.prefix
table[crow][3] = a.unprefixed_name
else:
table[crow][2] = TD(a.name, colspan = 2)