[Piglit] [PATCH 11/13] framework/summary.py: add crashed page.
Kenney Phillis
kphillisjr at gmail.com
Thu Oct 31 15:48:07 CET 2013
Sometimes a user just wants to be able to painlessly get a visual on what crashed.
---
framework/summary.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/framework/summary.py b/framework/summary.py
index f5af627..0105bf0 100644
--- a/framework/summary.py
+++ b/framework/summary.py
@@ -345,7 +345,8 @@ class Summary:
self.fractions = {}
self.totals = {}
self.tests = {'all': set(), 'changes': set(), 'problems': set(),
- 'skipped': set(), 'regressions': set(), 'fixes': set()}
+ 'skipped': set(), 'regressions': set(), 'fixes': set(),
+ 'crashed': set()}
for each in self.results:
# Build a dict of the status output of all of the tests, with the
@@ -377,6 +378,10 @@ class Summary:
if so.Skip() in status:
self.tests['skipped'].add(test)
+ # Find all tests with a status of crash
+ if so.Crash() in status:
+ self.tests['crashed'].add(test)
+
# find fixes, regressions, and changes
for i in xrange(len(status) - 1):
first = status[i]
@@ -474,7 +479,7 @@ class Summary:
output_encoding="utf-8",
module_directory=".makotmp")
- pages = ('changes', 'problems', 'skipped', 'fixes', 'regressions')
+ pages = ('changes', 'problems', 'skipped', 'fixes', 'regressions','crashed')
# Index.html is a bit of a special case since there is index, all, and
# alltests, where the other pages all use the same name. ie,
--
1.7.9.5
More information about the Piglit
mailing list