diff options
author | Craig Tiller <ctiller@google.com> | 2017-02-17 06:51:47 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-02-17 06:51:47 -0800 |
commit | f422cc77ba5485c1e720f5d6553f06b5fecec317 (patch) | |
tree | dd9df277f89ef63c5c6786feeec5887cec18dcc4 /tools/run_tests/run_microbenchmark.py | |
parent | 985736358cc96a343edd8b3df651f8eb6bd66025 (diff) | |
parent | 46ca4f7d4eca6cb69a6d80ce35f58f2325cf945d (diff) |
Merge github.com:grpc/grpc into bm_cq
Diffstat (limited to 'tools/run_tests/run_microbenchmark.py')
-rwxr-xr-x | tools/run_tests/run_microbenchmark.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/run_tests/run_microbenchmark.py b/tools/run_tests/run_microbenchmark.py index ceb832c642..62e767a021 100755 --- a/tools/run_tests/run_microbenchmark.py +++ b/tools/run_tests/run_microbenchmark.py @@ -28,6 +28,7 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +import cgi import multiprocessing import os import subprocess @@ -71,11 +72,12 @@ def heading(name): def link(txt, tgt): global index_html - index_html += "<p><a href=\"%s\">%s</a></p>\n" % (tgt, txt) + index_html += "<p><a href=\"%s\">%s</a></p>\n" % ( + cgi.escape(tgt, quote=True), cgi.escape(txt)) def text(txt): global index_html - index_html += "<p><pre>%s</pre></p>\n" % txt + index_html += "<p><pre>%s</pre></p>\n" % cgi.escape(txt) def collect_latency(bm_name, args): """generate latency profiles""" |