1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Format properly mtr report for the test case that is not completed

- Fixes 29e8c15417 (MDEV-25857)
Review by: <@mariadb.com>
This commit is contained in:
Anel Husakovic
2022-06-30 06:54:07 -05:00
committed by Daniel Black
parent 62a20f8047
commit 0c62b6d565

View File

@@ -509,11 +509,12 @@ sub main {
}
if ( not @$completed ) {
my $test_name= mtr_grab_file($path_current_testlog);
my $test_name= mtr_grab_file($path_testlog);
$test_name =~ s/^CURRENT_TEST:\s//;
chomp($test_name);
my $tinfo = My::Test->new(name => $test_name);
$tinfo->{result}= 'MTR_RES_FAILED';
$tinfo->{logfile}=$path_current_testlog;
$tinfo->{comment}=' ';
mtr_report_test($tinfo);
mtr_error("Test suite aborted");
}