diff options
author | unknown <msvensson@pilot.(none)> | 2007-06-13 10:35:20 +0200 |
---|---|---|
committer | unknown <msvensson@pilot.(none)> | 2007-06-13 10:35:20 +0200 |
commit | 3aa6d3f51a06145c7aa50af993623758ea7ef482 (patch) | |
tree | dd6dc9b4fe251ec5bb3bb7e15cd00998ce8799b4 /mysql-test/mysql-test-run.pl | |
parent | fe8fdfcc156aa3865580fc8187dda0c9cf82aed1 (diff) | |
download | mariadb-git-3aa6d3f51a06145c7aa50af993623758ea7ef482.tar.gz |
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
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index e3d4c33cba9..783d48b9f48 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -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> ) { |