summaryrefslogtreecommitdiff
path: root/source4/selftest/output/html.pm
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-20 15:54:05 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 06:28:48 +0100
commit70c9374305fdb39ca92b3490bfdbc23043960637 (patch)
treefc1505fd56e2e55c67a2759770cf5c3bf9a6ffbc /source4/selftest/output/html.pm
parent254f1c6fee18dd14d2f9f97d65e6fe9ef04c26f2 (diff)
downloadsamba-70c9374305fdb39ca92b3490bfdbc23043960637.tar.gz
samba-70c9374305fdb39ca92b3490bfdbc23043960637.tar.bz2
samba-70c9374305fdb39ca92b3490bfdbc23043960637.zip
r26548: Remove remaining variables from state hash.
(This used to be commit 84f5b3e257241f699f3e51d8f282fa00cfd1000a)
Diffstat (limited to 'source4/selftest/output/html.pm')
-rw-r--r--source4/selftest/output/html.pm23
1 files changed, 2 insertions, 21 deletions
diff --git a/source4/selftest/output/html.pm b/source4/selftest/output/html.pm
index 7f3cfac8cd..13d2f10938 100644
--- a/source4/selftest/output/html.pm
+++ b/source4/selftest/output/html.pm
@@ -84,6 +84,7 @@ sub start_testsuite($$$)
failure => 0
};
+ $state->{NAME} = $name;
$state->{HTMLFILE} = "$name.html";
$state->{HTMLFILE} =~ s/[:\t\n \/]/_/g;
@@ -91,26 +92,6 @@ sub start_testsuite($$$)
$self->print_html_header("Test Results for $name", *TEST);
- if ($state->{ENVNAME} ne "none") {
- print TEST "<h2>Environment settings</h2>\n";
-
- print TEST " <table>\n";
- print TEST " <tr><td><b>Variable name</b></td><td><b>Variable value</b></td></tr>\n";
- foreach (keys %{$state->{ENVVARS}}) {
- print TEST " <tr><td>$_</td><td>";
- my $val = $state->{ENVVARS}->{$_};
- if ($val =~ /^\.\// and -r $val) {
- print TEST "<a href=\"../$val\">$val</a>";
- } elsif (-r $val) {
- print TEST "<a href=\"$val\">$val</a>";
- } else {
- print TEST $val;
- }
- print TEST "</td></tr>\n";
- }
- print TEST " </table>\n";
- }
-
print TEST "<h2>Tests</h2>\n";
print TEST " <table>\n";
@@ -140,7 +121,6 @@ sub end_testsuite($$$$$)
print TEST "</table>\n";
- print TEST "<div class=\"command\">$state->{CMD}</div>\n";
print TEST "<div class=\"duration\">Duration: " . (time() - $state->{START_TIME}) . "s</div>\n";
$self->print_html_footer(*TEST);
@@ -200,6 +180,7 @@ sub start_test($$$)
my ($self, $state, $parents, $testname) = @_;
if ($#$parents == -1) {
+ $state->{START_TIME} = time();
$self->start_testsuite($testname, $state);
return;
}