From 09ec68baddb5d17a0eb9e142c1f1bbe0603d465e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 27 Oct 2007 10:00:44 +0200 Subject: r25746: [selftest] make plain output more readable metze (This used to be commit b9363755ee9f6ca7e04729519991f9ba0163ff2f) --- source4/selftest/output/plain.pm | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'source4/selftest') diff --git a/source4/selftest/output/plain.pm b/source4/selftest/output/plain.pm index 6b196090a1..0406ca7d3d 100644 --- a/source4/selftest/output/plain.pm +++ b/source4/selftest/output/plain.pm @@ -122,14 +122,6 @@ sub summary($) } } - if ($self->{statistics}->{SUITES_FAIL} == 0) { - my $ok = $self->{statistics}->{TESTS_EXPECTED_OK} + - $self->{statistics}->{TESTS_EXPECTED_FAIL}; - print "ALL OK ($ok tests in $self->{statistics}->{SUITES_OK} testsuites)\n"; - } else { - print "FAILED ($self->{statistics}->{TESTS_UNEXPECTED_FAIL} failures and $self->{statistics}->{TESTS_ERROR} errors in $self->{statistics}->{SUITES_FAIL} testsuites)\n"; - } - print SUMMARY "= Skipped tests =\n"; foreach my $reason (keys %{$self->{skips}}) { print SUMMARY "$reason\n"; @@ -140,7 +132,16 @@ sub summary($) } close(SUMMARY); - print "A summary can be found in $self->{summaryfile}\n"; + print "\nA summary with detailed informations can be found in:\n $self->{summaryfile}\n"; + + if ($self->{statistics}->{SUITES_FAIL} == 0) { + my $ok = $self->{statistics}->{TESTS_EXPECTED_OK} + + $self->{statistics}->{TESTS_EXPECTED_FAIL}; + print "\nALL OK ($ok tests in $self->{statistics}->{SUITES_OK} testsuites)\n"; + } else { + print "\nFAILED ($self->{statistics}->{TESTS_UNEXPECTED_FAIL} failures and $self->{statistics}->{TESTS_ERROR} errors in $self->{statistics}->{SUITES_FAIL} testsuites)\n"; + } + } sub skip_testsuite($$) -- cgit