aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests
diff options
context:
space:
mode:
authorGravatar adelez <adelez@google.com>2016-02-03 11:11:18 -0800
committerGravatar adelez <adelez@google.com>2016-02-03 11:11:18 -0800
commit4253522c76fd7694a621dc62a7092ffa6e802e15 (patch)
treeb99a3b1bb4d659e996cec2dcd91fce0247488ba3 /tools/run_tests
parentf8ea3e4a5bab5e56d92538e981a35f8087264cd2 (diff)
parentd63e90de8936a12e0282f74c23a05023c6420204 (diff)
Merge pull request #4999 from adelez/fix_interop_report
Handle the case where result.http2results is none.
Diffstat (limited to 'tools/run_tests')
-rw-r--r--tools/run_tests/interop_html_report.template22
1 files changed, 13 insertions, 9 deletions
diff --git a/tools/run_tests/interop_html_report.template b/tools/run_tests/interop_html_report.template
index c01bdf7a77..114a508c31 100644
--- a/tools/run_tests/interop_html_report.template
+++ b/tools/run_tests/interop_html_report.template
@@ -46,15 +46,19 @@
## Because interop tests does not have runs_per_test flag, each test is
## run once. So there should only be one element for each result.
<% result = resultset[shortname][0] %>
- <td bgcolor="white">
- <div style="width:95%; border: 1px solid black; position: relative; padding: 3px;">
- <span style="position: absolute; left: 45%;">${int(result.http2results['percent'] * 100)}&#37;</span>
- <div style="height: 20px;
- background-color: hsl(${result.http2results['percent'] * 120}, 100%, 50%);
- width: ${result.http2results['percent'] * 100}%;"
- title="${result.http2results['failed_cases'] | h}"></div>
- </div>
- </td>
+ % if result.http2results:
+ <td bgcolor="white">
+ <div style="width:95%; border: 1px solid black; position: relative; padding: 3px;">
+ <span style="position: absolute; left: 45%;">${int(result.http2results['percent'] * 100)}&#37;</span>
+ <div style="height: 20px;
+ background-color: hsl(${result.http2results['percent'] * 120}, 100%, 50%);
+ width: ${result.http2results['percent'] * 100}%;"
+ title="${result.http2results['failed_cases'] | h}"></div>
+ </div>
+ </td>
+ % else:
+ <td bgcolor="red">No result is found!</td>
+ % endif
% else:
<td bgcolor="magenta">Not implemented</td>
% endif