From 79e59dfdf278ce9beb751c3b4a69fe88181649d0 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 26 Sep 2007 23:36:07 +0000 Subject: r25364: List skipped testsuites in summary only. (This used to be commit cc22be4530f56d8cb862ccf91f386dd587bf9536) --- source4/selftest/output/html.pm | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) (limited to 'source4/selftest') diff --git a/source4/selftest/output/html.pm b/source4/selftest/output/html.pm index c96e3e5c5f..22488576b4 100644 --- a/source4/selftest/output/html.pm +++ b/source4/selftest/output/html.pm @@ -23,6 +23,7 @@ sub new($$$$) { unexpected_success => [], expected_failure => [], unexpected_failure => [], + skip_testsuites => [], error => [] } }; @@ -325,6 +326,27 @@ sub summary($) print_table("Unexpected failures", $summ->{unexpected_failure}); print_table("Skipped tests", $summ->{skip}); print_table("Expected failures", $summ->{expected_failure}); + + print SUMMARY "

Skipped testsuites

\n"; + print SUMMARY "\n"; + print SUMMARY "\n"; + print SUMMARY " \n"; + print SUMMARY " \n"; + print SUMMARY "\n"; + + foreach (@{$summ->{skip_testsuites}}) { + print SUMMARY "\n"; + print SUMMARY " \n"; + if (defined($$_[2])) { + print SUMMARY " \n"; + } else { + print SUMMARY " \n"; + } + print SUMMARY "\n"; + } + + print SUMMARY "
TestsuiteReason
$$_[1]$$_[2]
"; + $self->print_html_footer(*SUMMARY); close(SUMMARY); } @@ -340,15 +362,8 @@ sub skip_testsuite($$$$) { my ($self, $envname, $name, $reason) = @_; - print INDEX "\n"; - print INDEX " $name\n"; - print INDEX " $envname\n"; - if ($reason) { - print INDEX " SKIPPED - $reason\n"; - } else { - print INDEX " SKIPPED\n"; - } - print INDEX "\n"; + push (@{$self->{error_summary}->{skip_testsuites}}, + [$envname, $name, $reason]); } 1; -- cgit