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:
@ -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
|
||||
|
Reference in New Issue
Block a user