summaryrefslogtreecommitdiff
path: root/mysql-test/mariadb-test-run.pl
diff options
context:
space:
mode:
authorAnel Husakovic <anel@mariadb.org>2022-06-30 06:54:07 -0500
committerDaniel Black <daniel@mariadb.org>2022-07-02 08:01:58 +1000
commit0c62b6d5652a66fa654e91dd27e0a16433920e5c (patch)
tree2c3b646a2ed075ef912ba9627e9afc04b5c54014 /mysql-test/mariadb-test-run.pl
parent62a20f8047f074fb65b20dc0c53f5a9c7b1edd4f (diff)
downloadmariadb-git-0c62b6d5652a66fa654e91dd27e0a16433920e5c.tar.gz
Format properly mtr report for the test case that is not completed
- Fixes 29e8c154172bd6b9dccd9757fddace93be6ad194 (MDEV-25857) Review by: <@mariadb.com>
Diffstat (limited to 'mysql-test/mariadb-test-run.pl')
-rwxr-xr-xmysql-test/mariadb-test-run.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/mysql-test/mariadb-test-run.pl b/mysql-test/mariadb-test-run.pl
index 1ee515c190a..4fb814a86e3 100755
--- a/mysql-test/mariadb-test-run.pl
+++ b/mysql-test/mariadb-test-run.pl
@@ -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");
}