r24669: Add CSS to the test run HTML output. See http://samba.org/~jelmer/ for an
[kai/samba.git] / source4 / selftest / selftest.pl
index 1dbb494edbc6e845617607c0242e71502cc3ba42..a10baebcf48d327f802a93eb529f2ce84d3debfe 100755 (executable)
@@ -777,14 +777,7 @@ $target->stop();
 
 $statistics->{END_TIME} = time();
 my $duration = ($statistics->{END_TIME}-$statistics->{START_TIME});
-my $numfailed = $statistics->{SUITES_FAIL};
-if ($numfailed == 0) {
-       my $ok = $statistics->{TESTS_EXPECTED_OK} + 
-                $statistics->{TESTS_EXPECTED_FAIL};
-       print "ALL OK ($ok tests in $statistics->{SUITES_OK} testsuites)\n";
-} else {
-       $msg_ops->summary();
-}
+$msg_ops->summary();
 print "DURATION: $duration seconds\n";
 
 my $failed = 0;
@@ -801,7 +794,7 @@ foreach (<$prefix/valgrind.log*>) {
 }
 
 if ($opt_format eq "buildfarm") {
-       print "TEST STATUS: $numfailed\n";
+       print "TEST STATUS: $statistics->{SUITES_FAIL}\n";
 }
 
-exit $numfailed;
+exit $statistics->{SUITES_FAIL};