1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-02 14:22:51 +03:00

Add error handling of failure to start server to "run_testcase_start_servers"

mysql-test/lib/mtr_report.pl:
  Use tinfo's comment as primary place to look for error message
This commit is contained in:
unknown
2006-10-06 17:15:26 +02:00
parent e16d985171
commit 64329b16ec
2 changed files with 39 additions and 17 deletions

View File

@ -144,9 +144,11 @@ sub mtr_report_test_failed ($) {
print "[ fail ]\n";
}
# FIXME Instead of this test, and meaningless error message in 'else'
# we should write out into $::path_timefile when the error occurs.
if ( -f $::path_timefile )
if ( $tinfo->{'comment'} )
{
print "\nERROR: $tinfo->{'comment'}\n";
}
elsif ( -f $::path_timefile )
{
print "\nErrors are (from $::path_timefile) :\n";
print mtr_fromfile($::path_timefile); # FIXME print_file() instead