Commit d2d4e667 authored by msvensson@pilot.(none)'s avatar msvensson@pilot.(none)
Browse files

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
parent 65919873
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -3106,9 +3106,12 @@ sub find_testcase_skipped_reason($)
{
  my ($tinfo)= @_;

  # Set default message
  $tinfo->{'comment'}= "Detected by testcase(no log file)";

  # Open mysqltest.log
  my $F= IO::File->new($path_timefile) or
    mtr_error("can't open file \"$path_timefile\": $!");
  my $F= IO::File->new($path_timefile)
    or return;
  my $reason;

  while ( my $line= <$F> )
@@ -3161,8 +3164,8 @@ sub analyze_testcase_failure($)
  my ($tinfo)= @_;

  # Open mysqltest.log
  my $F= IO::File->new($path_timefile) or
    mtr_error("can't open file \"$path_timefile\": $!");
  my $F= IO::File->new($path_timefile)
    or return;

  while ( my $line= <$F> )
  {