From 3757b9ffb5e0ff82704d2a30eab08cc7a20e9e53 Mon Sep 17 00:00:00 2001 From: Anel Husakovic Date: Mon, 1 Feb 2021 14:25:51 +0100 Subject: MDEV-24135: Valgrind / ASAN warnings do not go to MTR XML - Note 1: MDEV doesn't depend on Valgrind/*SAN warnings/error, but doesn't show warnings in general (example 1 - JIRA). - Note 2: XML reports doesn't show message in case of failure, this patch will append this option too (example 2 - JIRA). - Note 3: xml-report file is saved in basedir,in case of compiling out-of-source. - Note 4: From 10.3+ you can control number of lines of failures with `--tail-lines=N` --- mysql-test/lib/mtr_report.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/mysql-test/lib/mtr_report.pm b/mysql-test/lib/mtr_report.pm index 98ed77eea0f..8a0ef232c91 100644 --- a/mysql-test/lib/mtr_report.pm +++ b/mysql-test/lib/mtr_report.pm @@ -514,6 +514,7 @@ sub mtr_report_stats ($$$$) { # if a test case has to be retried it should have the result MTR_RES_FAILED in jUnit XML if ($test->{'result'} eq "MTR_RES_FAILED" || $test->{'retries'} > 0) { my $logcontents = $test->{'logfile-failed'} || $test->{'logfile'}; + $logcontents= $logcontents.$test->{'warnings'}."\n".$test->{'comment'}; # remove any double ] that would end the cdata $logcontents =~ s/]]/\x{fffd}/g; # replace wide characters that aren't allowed in XML 1.0 -- cgit v1.2.1