Commit 0c62b6d5 authored by Anel Husakovic's avatar Anel Husakovic Committed by Daniel Black

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

- Fixes 29e8c154 (MDEV-25857)
Review by: <@mariadb.com>
parent 62a20f80
......@@ -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");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment