Commit 0c98c45c authored by Dylan Baker's avatar Dylan Baker

summary-html: Add Environment to HTML pages

Specifically for glean tests setting certain environment variables are
needed to run a certain subtest in glean. This patch prints that in the
HTML results.
Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
parent 8fb5eb43
......@@ -389,6 +389,11 @@ class Summary:
out.write(testfile.render(
testname=key,
status=value.get('result', 'None'),
# Returning a NoneType (instaed of 'None') prevents
# this field from being generated.setting the
# environment to run tests is ugly, and should
# disapear at somepoint
env=value.get('environment', None),
returncode=value.get('returncode', 'None'),
time=value.get('time', 'None'),
info=value.get('info', 'None'),
......
......@@ -34,6 +34,14 @@
<pre>${info | h}</pre>
</td>
</tr>
% if env:
<tr>
<td>Environment</td>
<td>
<pre>${env | h}</pre>
</td>
</tr>
% endif
<tr>
<td>Command</td>
<td>
......
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