1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Print tests that has been run but shouldn't and vice versa

Use opt_start_timeout also for ndb
Remove the .result files generated by 'check_testcase'
This commit is contained in:
msvensson@pilot.mysql.com
2008-05-02 12:11:04 +02:00
parent a0f393d660
commit 8c97dc80ca
2 changed files with 38 additions and 10 deletions

View File

@ -131,8 +131,6 @@ sub mtr_report_test ($) {
if ($tinfo->{'result'} eq 'MTR_RES_FAILED'){
#my $test_failures= $tinfo->{'failures'} || 0;
#$tinfo->{'failures'}= $test_failures + 1;
if ( defined $tinfo->{'warnings'} )
{
mtr_report("[ fail ] Found warnings in server log file!");
@ -233,7 +231,7 @@ sub mtr_report_stats ($) {
$tot_tests++;
$tot_passed++;
}
elsif ( $tinfo->{'result'} eq 'MTR_RES_FAILED' )
elsif ( $tinfo->{failures} )
{
$tot_tests++;
$tot_failed++;
@ -301,6 +299,14 @@ sub mtr_report_stats ($) {
# Print a list of testcases that failed
if ( $tot_failed != 0 )
{
# Print each failed test, again
#foreach my $test ( @$tests ){
# if ( $test->{result} eq 'MTR_RES_FAILED' ) {
# mtr_report_test($test);
# }
#}
my $ratio= $tot_passed * 100 / $tot_tests;
print "Failed $tot_failed/$tot_tests tests, ";
printf("%.2f", $ratio);