Unverified Commit da91887d authored by boklm's avatar boklm
Browse files

tor_bootstrap: include logs directly in the report

parent c11dbd4a
......@@ -52,7 +52,7 @@ sub make_report {
copy_static;
my $template = Template->new(
ENCODING => 'utf8',
INCLUDE_PATH => "$FindBin::Bin/tmpl",
INCLUDE_PATH => "$FindBin::Bin/tmpl:$report->{options}{'report-dir'}",
OUTPUT_PATH => $report->{options}{'report-dir'},
);
my %r = ( %template_functions, %$report );
......
......@@ -4,7 +4,9 @@
<pre id="torrc_[% test.name %]" style="display:none">[% test.torrc %]</pre>
</li>
[% END %]
<li><a href="results-[% tbbfile %]/[% test.name %].log">tor daemon logs</a></li>
<li><a href="javascript:togglecontent('logs_[% test.name %]')">tor daemon logs</a>
<pre id="logs_[% test.name %]" style="display:none">[% INSERT "results-${tbbfile}/${test.name}.log"; %]</pre>
</li>
</ul>
[% IF test.results.fetch_error %]
Error fetching a page:
......
Supports Markdown
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