From b4b0fcee26dc9a9ae30a98c37e999d0beb9d1275 Mon Sep 17 00:00:00 2001 From: "msvensson@pilot.mysql.com" <> Date: Sun, 4 May 2008 20:59:51 +0200 Subject: [PATCH] Debug printouts for not all tests completed --- mysql-test/mysql-test-run.pl | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 40fec215b34..74b895a5c40 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -333,31 +333,16 @@ sub main { if ( @$completed != $num_tests){ if ($opt_force){ - # All test should have been run, print the ones that differs - my %tests= (); - foreach my $t (@$tests) { $tests{$t->key()}= 1; }; - foreach my $done ( @$completed ){ - if ($tests{$done->key()}) { - mtr_report("Found one extra completed"); - $done->print_test(); - } + # All test should have been run, print any that are still in $tests + foreach my $test ( @$tests ){ + $test->print_test(); } - %tests= (); - foreach my $t (@$completed) { $tests{$t->key()}= 1; }; - foreach my $done ( @$tests ){ - if ($tests{$done->key()}) { - mtr_report("Found one test not run"); - $done->print_test(); - } - } - } # Not all tests completed, failure mtr_report(); - mtr_report(int(@$completed), " of $num_tests completed."); - mtr_error("Test failed.", - "To continue, re-run with '--force'"); + mtr_report("Only ", int(@$completed), " of $num_tests completed."); + mtr_error("Not all tests completed"); } mtr_print_line();