summaryrefslogtreecommitdiff
path: root/piglit-summary-html.py
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-04-04 22:59:21 +0200
committerMarek Olšák <maraeo@gmail.com>2011-04-06 01:41:17 +0200
commit86a819d052802853b41230887120734a62280c83 (patch)
tree337cbd0d2c9135faa5dee2629459edfb92634a18 /piglit-summary-html.py
parent2e4c7a2fa9a859f3a912260816815b6ee845536c (diff)
core: generate a summary of regressions
This is basically a subset of 'changes'. The regression is if a test result changes from either 'pass' or 'skip' to something other than 'pass' and 'skip'. Thus the relation is: { pass, skip } -> { warn, fail, trap, abort, crash } Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'piglit-summary-html.py')
-rwxr-xr-xpiglit-summary-html.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/piglit-summary-html.py b/piglit-summary-html.py
index 2fd7fb795..30a049e3b 100755
--- a/piglit-summary-html.py
+++ b/piglit-summary-html.py
@@ -75,7 +75,8 @@ Testrun = readfile(os.path.join(templatedir, 'testrun.html'))
SummaryPages = {
'all': 'index.html',
'changes': 'changes.html',
- 'problems': 'problems.html'
+ 'problems': 'problems.html',
+ 'regressions': 'regressions.html'
}
def buildDetailValue(detail):
@@ -192,6 +193,8 @@ def buildGroupSummary(indent, groupsummary, showcurrent):
names = filter(lambda n: groupsummary.children[n].changes, names)
elif showcurrent == 'problems':
names = filter(lambda n: groupsummary.children[n].problems, names)
+ elif showcurrent == 'regressions':
+ names = filter(lambda n: groupsummary.children[n].regressions, names)
names.sort()
for n in names:
@@ -325,6 +328,7 @@ def main():
writeSummaryHtml(summary, summaryDir, 'all')
writeSummaryHtml(summary, summaryDir, 'problems')
writeSummaryHtml(summary, summaryDir, 'changes')
+ writeSummaryHtml(summary, summaryDir, 'regressions')
if __name__ == "__main__":