summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2012-11-29 23:47:45 -0800
committerKenneth Graunke <kenneth@whitecape.org>2012-11-29 23:47:45 -0800
commita4ca942fd52434aa8d490eca1c509889bdd0d9bb (patch)
tree7851b62d2edd867ff92313397b05bb1d20f208d7
parent7f3801306d91849839f25a15b6dc49b826a924af (diff)
reporting: deal with None results...mark as skip
-rwxr-xr-xprograms/report.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/programs/report.py b/programs/report.py
index d5e4425..7cca268 100755
--- a/programs/report.py
+++ b/programs/report.py
@@ -76,7 +76,7 @@ def toPassVector(status):
'timeout': PassVector(0,0,0,0,1,0),
'hang': PassVector(0,0,0,0,0,1)
}
- return vectormap[status]
+ return vectormap[status if status else 'skip']
#############################################################################
##### Helper functions
@@ -92,7 +92,7 @@ def escape(s):
def testResult(run_name, full_name, status):
html = '<a class="%(status)s" href="%(link)s">%(status)s</a>' % {
- 'status': status,
+ 'status': status if status else 'skip',
'link': path.join(run_name, escape(full_name) + '.html')
}
return html