diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-06-08 11:22:53 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-07-24 11:42:34 -0700 |
commit | 9d4588cec7954d0abd879ab2ee6346e21b5fe0b6 (patch) | |
tree | a41b5f95d4f2214cb18a7e94dc7ea93200831c0d /templates | |
parent | 840e6e98326daa0ad43c4e2bf1859b086627bc9a (diff) |
summary/html: generalize info output
So that random keys show up somewhat nicely.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/testrun_info.mako | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/templates/testrun_info.mako b/templates/testrun_info.mako index 473897a29..f8d86f94a 100644 --- a/templates/testrun_info.mako +++ b/templates/testrun_info.mako @@ -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> |