summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Arteaga <andyspiros@gmail.com>2012-02-22 12:50:34 +0100
committerAndrea Arteaga <andyspiros@gmail.com>2012-02-22 12:50:34 +0100
commita7130579028900ab48a7c0378c022dac702eff23 (patch)
tree99925ce94e7e9118384426a12759ac8e4a9c4fc5 /numbench/htmlreport.py
parentFixed reports, added -d switchl, better failure checks. (diff)
downloadauto-numerical-bench-a7130579028900ab48a7c0378c022dac702eff23.tar.gz
auto-numerical-bench-a7130579028900ab48a7c0378c022dac702eff23.tar.bz2
auto-numerical-bench-a7130579028900ab48a7c0378c022dac702eff23.zip
Added wildcards and regexp support for skip. Fixed a few bugs.
Diffstat (limited to 'numbench/htmlreport.py')
-rw-r--r--numbench/htmlreport.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/numbench/htmlreport.py b/numbench/htmlreport.py
index a42f579..33c19fa 100644
--- a/numbench/htmlreport.py
+++ b/numbench/htmlreport.py
@@ -1,5 +1,5 @@
#=====================================================
-# Copyright (C) 2011 Andrea Arteaga <andyspiros@gmail.com>
+# Copyright (C) 2011-2012 Andrea Arteaga <andyspiros@gmail.com>
#=====================================================
#
# This program is free software; you can redistribute it and/or
@@ -17,6 +17,7 @@
#
import time
from os.path import join as pjoin, basename
+from xml.sax.saxutils import escape as xmlescape
import benchconfig as cfg
@@ -81,7 +82,7 @@ h1, h2, .plot, .descr, .info {
self.content += '<div class="inputfile">Input file: ' + \
'<a href="%s">%s</a>' % (basename(inputfile), cfg.inputfile) + \
- '<pre>%s</pre></div>' % file(cfg.inputfile, 'r').read()
+ '<pre>%s</pre></div>' % xmlescape(file(cfg.inputfile, 'r').read())
self.content += '<div class="log">Logs: <a href="log">%s</a></div>' \
% cfg.logdir