[Piglit] [PATCH 3/3] Generate a html summary of skipped tests
Marek Olšák
maraeo at gmail.com
Sat Oct 6 18:49:36 PDT 2012
---
framework/summary.py | 3 +++
piglit-summary-html.py | 6 +++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/framework/summary.py b/framework/summary.py
index 50ba58b..a193351 100644
--- a/framework/summary.py
+++ b/framework/summary.py
@@ -97,6 +97,7 @@ results is an array of TestResult instances, one per testrun
self.regressions = self.isRegression(statiList)
statiList.reverse()
self.fixes = self.isRegression(statiList)
+ self.skipped = 'skip' in statiSet
def allTests(self):
return [self]
@@ -120,6 +121,7 @@ results is an array of GroupResult instances, one per testrun
self.problems = False
self.regressions = False
self.fixes = False
+ self.skipped = False
self.children = {}
# Perform some initial annotations
@@ -166,6 +168,7 @@ results is an array of GroupResult instances, one per testrun
self.problems = self.problems or self.children[name].problems
self.regressions = self.regressions or self.children[name].regressions
self.fixes = self.fixes or self.children[name].fixes
+ self.skipped = self.skipped or self.children[name].skipped
def allTests(self):
"""\
diff --git a/piglit-summary-html.py b/piglit-summary-html.py
index d0e49f3..087b503 100755
--- a/piglit-summary-html.py
+++ b/piglit-summary-html.py
@@ -78,7 +78,8 @@ SummaryPages = {
'changes': 'changes.html',
'problems': 'problems.html',
'regressions': 'regressions.html',
- 'fixes': 'fixes.html'
+ 'fixes': 'fixes.html',
+ 'skipped': 'skipped.html'
}
def buildResultListItem(detail):
@@ -207,6 +208,8 @@ def buildGroupSummary(indent, groupsummary, showcurrent):
names = filter(lambda n: groupsummary.children[n].regressions, names)
elif showcurrent == 'fixes':
names = filter(lambda n: groupsummary.children[n].fixes, names)
+ elif showcurrent == 'skipped':
+ names = filter(lambda n: groupsummary.children[n].skipped, names)
names.sort()
for n in names:
@@ -340,6 +343,7 @@ def main():
writeSummaryHtml(summary, summaryDir, 'changes')
writeSummaryHtml(summary, summaryDir, 'regressions')
writeSummaryHtml(summary, summaryDir, 'fixes')
+ writeSummaryHtml(summary, summaryDir, 'skipped')
if __name__ == "__main__":
--
1.7.9.5
More information about the Piglit
mailing list