diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-10-27 10:00:44 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:43:41 +0100 |
commit | b9363755ee9f6ca7e04729519991f9ba0163ff2f (patch) | |
tree | 3933f5548adb75e1b26cc193963fc751bba99847 /source/selftest/output | |
parent | 76b628df53d6cf028fb9f22df003ac87fe3b3c56 (diff) | |
download | samba-b9363755ee9f6ca7e04729519991f9ba0163ff2f.tar.gz |
r25746: [selftest] make plain output more readable
metze
Diffstat (limited to 'source/selftest/output')
-rw-r--r-- | source/selftest/output/plain.pm | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/source/selftest/output/plain.pm b/source/selftest/output/plain.pm index 6b196090a15..0406ca7d3dd 100644 --- a/source/selftest/output/plain.pm +++ b/source/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($$) |