From d63e90de8936a12e0282f74c23a05023c6420204 Mon Sep 17 00:00:00 2001 From: Adele Zhou Date: Mon, 1 Feb 2016 15:19:34 -0800 Subject: Handle the case when result.http2results is None. --- tools/run_tests/interop_html_report.template | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'tools/run_tests') 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] %> - -
- ${int(result.http2results['percent'] * 100)}% -
-
- + % if result.http2results: + +
+ ${int(result.http2results['percent'] * 100)}% +
+
+ + % else: + No result is found! + % endif % else: Not implemented % endif -- cgit v1.2.3