summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2013-05-03 16:02:02 -0700
committerDylan Baker <baker.dylan.c@gmail.com>2013-05-31 14:11:21 -0700
commitfc25db9771b88a17c8f615d57bf47bd013efc4ca (patch)
tree7a6e64d942747dffac592179f4fa348d68c90b40 /templates
parent80f597632541ef2c178d2367602ca0e055526496 (diff)
HTML summary: Provides means to exclude generating test result files
This provides a switch and method for excluding the generation of the test result HTML files (those that live under <testrun name>/). This allows the user to trade some verbosity in the results for a significant increase in generation speed. A run of quick.tests with all options enabled takes ~5.5 seconds, with just pass and skip disabled it only takes ~2.5 seconds. This only becomes more significant as more testsruns are added the HTML page. V3: - Remove some bad comments - adds 'skip' to exclude list V4: - Renames --exclude-generation to --exclude-details Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-By: Aaron Watry <awatry@gmail.com> Reviewed-By: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/index.mako6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/index.mako b/templates/index.mako
index 2f6eedf4f..ea3ec7613 100644
--- a/templates/index.mako
+++ b/templates/index.mako
@@ -58,9 +58,15 @@
</td>
% elif line['type'] == "testResult":
<td class="${line['class']}">
+ ## If the result is in the excluded results page list from
+ ## argparse, just print the text, otherwise add the link
+ % if line['class'] not in exclude:
<a href="${line['href']}">
${line['text']}
</a>
+ % else:
+ ${line['text']}
+ % endif
</td>
% elif line['type'] == "subtestResult":
<td class="${line['class']}">