Commit 9d4588ce authored by Dylan Baker's avatar Dylan Baker

summary/html: generalize info output

So that random keys show up somewhat nicely.
parent 840e6e98
......@@ -100,10 +100,7 @@ def _make_testrun_info(results, destination, exclude=None):
totals=each.totals['root'],
time=each.time_elapsed.delta,
options=each.options,
uname=each.info['system'].get('uname'),
glxinfo=each.info['system'].get('glxinfo'),
clinfo=each.info['system'].get('clinfo'),
lspci=each.info['system'].get('lspci')))
info=each.info))
# Then build the individual test results
for key, value in six.iteritems(each.tests):
......
......@@ -44,27 +44,19 @@
<td>${options}</td>
</tr>
<tr>
<td>uname -a</td>
<td>info</td>
<td>
<pre>${uname}</pre>
</td>
</tr>
<tr>
<td>lspci</td>
<td>
<pre>${lspci}</pre>
</td>
</tr>
<tr>
<td>glxinfo</td>
<td>
<pre>${glxinfo}</pre>
</td>
</tr>
<tr>
<td>clinfo</td>
<td>
<pre>${clinfo}</pre>
<table>
% for key, sub in sorted(six.iteritems(info)):
% if isinstance(sub, str):
<tr><td>${str}</td></tr>
% else:
% for subkey, value in sorted(six.iteritems(sub)):
<tr><td>${subkey}</td><td><pre>${value}</pre></td></tr>
% endfor
% endif
% endfor
</table>
</td>
</tr>
</table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment