Skip to content

Commit

Permalink
Format properly mtr report for the test case that is not completed
Browse files Browse the repository at this point in the history
- Fixes 29e8c15 (MDEV-25857)
Review by: <@mariadb.com>
  • Loading branch information
an3l authored and grooverdan committed Jul 1, 2022
1 parent 62a20f8 commit 0c62b6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mysql-test/mariadb-test-run.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 0c62b6d

Please sign in to comment.