From a4ca942fd52434aa8d490eca1c509889bdd0d9bb Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 29 Nov 2012 23:47:45 -0800 Subject: reporting: deal with None results...mark as skip --- programs/report.py | 4 ++-- 1 file 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 = '%(status)s' % { - 'status': status, + 'status': status if status else 'skip', 'link': path.join(run_name, escape(full_name) + '.html') } return html -- cgit v1.2.3