提交 be8228c9 编写于 作者: A Amador Pahim

html: add params as tooltip for test

Convenience tooltip to expose the parameters available to the test.
Signed-off-by: NAmador Pahim <apahim@redhat.com>
上级 145b937d
......@@ -120,6 +120,10 @@ class ReportModel(object):
for tst in self.result.tests:
formatted = {}
formatted['name'] = tst['name']
params = 'Params:\n'
for path, key, value in tst['params'].iteritems():
params += ' %s:%s => %s\n' % (path, key, value)
formatted['params'] = params
formatted['status'] = tst['status']
logdir = os.path.join(results_dir, 'test-results', tst['logdir'])
formatted['logdir'] = os.path.relpath(logdir, self.html_output_dir)
......
......@@ -68,7 +68,7 @@
{{#tests}}
<tr class="{{row_class}}">
<td>{{time_start}}</td>
<td><a href="{{logdir}}">{{name}}</a></td>
<td><a href="{{logdir}}" title="{{params}}">{{name}}</a></td>
<td>{{status}}</td>
<td>{{time}}</td>
<td>{{& fail_reason}}</td>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册