diff options
author | adelez <adelez@google.com> | 2016-02-03 11:11:18 -0800 |
---|---|---|
committer | adelez <adelez@google.com> | 2016-02-03 11:11:18 -0800 |
commit | 4253522c76fd7694a621dc62a7092ffa6e802e15 (patch) | |
tree | b99a3b1bb4d659e996cec2dcd91fce0247488ba3 /tools/run_tests | |
parent | f8ea3e4a5bab5e56d92538e981a35f8087264cd2 (diff) | |
parent | d63e90de8936a12e0282f74c23a05023c6420204 (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.template | 22 |
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)}%</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)}%</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 |