summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-04-05 00:03:15 +0200
committerMarek Olšák <maraeo@gmail.com>2011-04-06 01:41:24 +0200
commit02b9ba501015655ff705170997193c158797bc21 (patch)
treeee965976367294e8fc2ed4878f5d4a89118c9d21 /framework
parent86a819d052802853b41230887120734a62280c83 (diff)
core: generate a summary of fixes
Same as regressions if you reverse the order of columns.
Diffstat (limited to 'framework')
-rw-r--r--framework/summary.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/summary.py b/framework/summary.py
index 133d6c54..c69fd2f7 100644
--- a/framework/summary.py
+++ b/framework/summary.py
@@ -102,6 +102,8 @@ results is an array of TestResult instances, one per testrun
self.changes = len(statiSet) > 1
self.problems = len(statiSet - set(['pass', 'skip'])) > 0
self.regressions = self.isRegression(statiList)
+ statiList.reverse()
+ self.fixes = self.isRegression(statiList)
def allTests(self):
return [self]
@@ -124,6 +126,7 @@ results is an array of GroupResult instances, one per testrun
self.changes = False
self.problems = False
self.regressions = False
+ self.fixes = False
self.children = {}
# Perform some initial annotations
@@ -169,6 +172,7 @@ results is an array of GroupResult instances, one per testrun
self.changes = self.changes or self.children[name].changes
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
def allTests(self):
"""\