mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Modifications to MTR and mysqltest to improve feedback from the latter when
testcase checks are made. MTR spawns mysqltest to run check-testcase test before and after each testcase it runs. It can also run check-warnings using mysqltest. Since it happened on PB that these checks hanged, this patch provides additional feedback to help investigating such failures: - mysqltest is modified to give feedback about main steps in execution of a testcase if run in verbose mode (including connection to the server), - MTR is modified to run mysqltest in verbose mode when doing check-testcase or check-warnings. The diagnostic output from mysqltest is preserved so that it is saved upon test failure.
This commit is contained in:
@ -2874,9 +2874,6 @@ test case was executed:\n";
|
||||
$result= 2;
|
||||
}
|
||||
|
||||
# Remove the .err file the check generated
|
||||
unlink($err_file);
|
||||
|
||||
# Remove the .result file the check generated
|
||||
unlink("$base_file.result");
|
||||
|
||||
@ -3494,6 +3491,7 @@ sub start_check_warnings ($$) {
|
||||
|
||||
mtr_add_arg($args, "--skip-safemalloc");
|
||||
mtr_add_arg($args, "--test-file=%s", "include/check-warnings.test");
|
||||
mtr_add_arg($args, "--verbose");
|
||||
|
||||
if ( $opt_embedded_server )
|
||||
{
|
||||
@ -3583,10 +3581,9 @@ sub check_warnings ($) {
|
||||
|
||||
if ( $res == 62 ) {
|
||||
# Test case was ok and called "skip"
|
||||
;
|
||||
# Remove the .err file the check generated
|
||||
unlink($err_file);
|
||||
}
|
||||
# Remove the .err file the check generated
|
||||
unlink($err_file);
|
||||
|
||||
if ( keys(%started) == 0){
|
||||
# All checks completed
|
||||
@ -3608,8 +3605,6 @@ sub check_warnings ($) {
|
||||
|
||||
$result= 2;
|
||||
}
|
||||
# Remove the .err file the check generated
|
||||
unlink($err_file);
|
||||
}
|
||||
elsif ( $proc eq $timeout_proc ) {
|
||||
$tinfo->{comment}.= "Timeout $timeout_proc for ".
|
||||
@ -4493,6 +4488,7 @@ sub start_check_testcase ($$$) {
|
||||
|
||||
mtr_add_arg($args, "--result-file=%s", "$opt_vardir/tmp/$name.result");
|
||||
mtr_add_arg($args, "--test-file=%s", "include/check-testcase.test");
|
||||
mtr_add_arg($args, "--verbose");
|
||||
|
||||
if ( $mode eq "before" )
|
||||
{
|
||||
@ -4662,8 +4658,7 @@ sub start_mysqltest ($) {
|
||||
elsif ( $opt_client_debugger )
|
||||
{
|
||||
debugger_arguments(\$args, \$exe, "client");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
my $proc= My::SafeProcess->new
|
||||
(
|
||||
|
Reference in New Issue
Block a user