mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Debug printouts for not all tests completed
This commit is contained in:
@ -333,31 +333,16 @@ sub main {
|
|||||||
if ( @$completed != $num_tests){
|
if ( @$completed != $num_tests){
|
||||||
|
|
||||||
if ($opt_force){
|
if ($opt_force){
|
||||||
# All test should have been run, print the ones that differs
|
# All test should have been run, print any that are still in $tests
|
||||||
my %tests= ();
|
foreach my $test ( @$tests ){
|
||||||
foreach my $t (@$tests) { $tests{$t->key()}= 1; };
|
$test->print_test();
|
||||||
foreach my $done ( @$completed ){
|
|
||||||
if ($tests{$done->key()}) {
|
|
||||||
mtr_report("Found one extra completed");
|
|
||||||
$done->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
|
# Not all tests completed, failure
|
||||||
mtr_report();
|
mtr_report();
|
||||||
mtr_report(int(@$completed), " of $num_tests completed.");
|
mtr_report("Only ", int(@$completed), " of $num_tests completed.");
|
||||||
mtr_error("Test failed.",
|
mtr_error("Not all tests completed");
|
||||||
"To continue, re-run with '--force'");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mtr_print_line();
|
mtr_print_line();
|
||||||
|
Reference in New Issue
Block a user