summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2012-12-17 02:14:43 -0800
committerKenneth Graunke <kenneth@whitecape.org>2012-12-17 02:14:43 -0800
commit8e65e2c49c2f5a40b2fb99efaabb6ab853b14e3d (patch)
tree8711f4eaf988542f7c50dcd272bc2850f4d57b3d
parent6aef32d8a409df4c73274af666ee33cfe097412a (diff)
separate out 'yet to be run'/scheduled tests.
-rwxr-xr-xprograms/report.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/programs/report.py b/programs/report.py
index 8922eaf..183126d 100755
--- a/programs/report.py
+++ b/programs/report.py
@@ -100,7 +100,7 @@ def changed(rs):
return any(rs[0] != r for r in rs)
def skipped(rs):
- return any(r == 'skip' or r is None for r in rs)
+ return any(r == 'skip' for r in rs)
def regressed(rs):
return any(worseThan(a, b) for (a, b) in zip(rs, rs[1:]))
@@ -115,17 +115,24 @@ def worseThan(a, b):
return False
return statuses.index(b) < statuses.index(a)
+def todo(rs):
+ return any(r is None for r in rs)
+
+def actually_run(rs):
+ return any(r is not None for r in rs)
+
#############################################################################
##### Summary page generation
#############################################################################
pages = [
- ('All', 'index.html', None),
+ ('All', 'index.html', actually_run),
('Changes', 'changes.html', changed),
('Fixes', 'fixes.html', fixed),
('Problems', 'problems.html', broken),
('Skipped', 'skipped.html', skipped),
('Regressions', 'regressions.html', regressed),
+ ('Scheduled', 'notrun.html', todo),
]
def build_navbox(current_page):
@@ -139,12 +146,12 @@ def build_navbox(current_page):
def testResult(run_name, full_name, status):
if interesting(status):
html = '<a class="%(status)s" href="%(link)s">%(status)s</a>' % {
- 'status': status if status else 'skip',
+ 'status': status if status else 'todo',
'link': path.join(escape(run_name), detailFile(full_name))
}
else:
html = '<span class="%(status)s">%(status)s</span>' % {
- 'status': status if status else 'skip',
+ 'status': status if status else 'todo',
}
return html
@@ -254,7 +261,7 @@ def detailFile(test):
return 'detail_' + escape(test) + '.html'
def interesting(r):
- return r and r != 'skip'
+ return r is not None
# Create result<N>.html pages containing the test result details for a
# single testrun.