HBASE-18341 (addendum) Replace '.' in test names with '_' when using them as html ids since

dot have special significance in CSS selectors.
Without it, we weren't able to select elements and add svg (trends columns) to them.

Change-Id: Ia63ff0851f0a2fad0789a24edf2f0ad00060d578
This commit is contained in:
Apekshit Sharma 2017-07-10 12:01:02 -07:00
parent 7d007eac98
commit 7d08c78103
1 changed files with 2 additions and 1 deletions

View File

@ -156,7 +156,8 @@ Legend : green: success, red: failed, yellow: timeout, blue: hanging
<td align="middle">
{{ failed|length }} / {{ timeout|length }} / {{ hanging|length }}
</td>
{% set sparkline_id = "sparkline_" ~ test ~ "_" ~ url_counter %}
{# Replace '.' in test names with '_' because dots are part of css selectors. #}
{% set sparkline_id = "sparkline_" ~ test|replace(".","_") ~ "_" ~ url_counter %}
<td id="{{ sparkline_id }}" align="middle">
</td>
<script>sparkline("{{ sparkline_id }}", "{{ failed|join(',') }}", "{{ timeout|join(',') }}",