mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug#29065 mysql-test-run.pl aborts execution on missing log file from test tool
- Make tesingt continue even if test log file does not exists mysql-test/mysql-test-run.pl: Allow execution to continue even if no log file has been generated by the test tool - it's not a critical error
This commit is contained in:
@ -3106,9 +3106,12 @@ sub find_testcase_skipped_reason($)
|
|||||||
{
|
{
|
||||||
my ($tinfo)= @_;
|
my ($tinfo)= @_;
|
||||||
|
|
||||||
|
# Set default message
|
||||||
|
$tinfo->{'comment'}= "Detected by testcase(no log file)";
|
||||||
|
|
||||||
# Open mysqltest.log
|
# Open mysqltest.log
|
||||||
my $F= IO::File->new($path_timefile) or
|
my $F= IO::File->new($path_timefile)
|
||||||
mtr_error("can't open file \"$path_timefile\": $!");
|
or return;
|
||||||
my $reason;
|
my $reason;
|
||||||
|
|
||||||
while ( my $line= <$F> )
|
while ( my $line= <$F> )
|
||||||
@ -3161,8 +3164,8 @@ sub analyze_testcase_failure($)
|
|||||||
my ($tinfo)= @_;
|
my ($tinfo)= @_;
|
||||||
|
|
||||||
# Open mysqltest.log
|
# Open mysqltest.log
|
||||||
my $F= IO::File->new($path_timefile) or
|
my $F= IO::File->new($path_timefile)
|
||||||
mtr_error("can't open file \"$path_timefile\": $!");
|
or return;
|
||||||
|
|
||||||
while ( my $line= <$F> )
|
while ( my $line= <$F> )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user