summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnel Husakovic <anel@mariadb.org>2021-02-01 14:25:51 +0100
committerAnel Husakovic <anel@mariadb.org>2021-02-03 07:24:29 +0100
commit3757b9ffb5e0ff82704d2a30eab08cc7a20e9e53 (patch)
tree55879e9c8150d01fa698a3c7f86add6b56286b5d
parent6ede84f477c1d0dc00381a201bbc32359e876c66 (diff)
downloadmariadb-git-bb-10.2-anel-MDEV-24135.tar.gz
MDEV-24135: Valgrind / ASAN warnings do not go to MTR XMLbb-10.2-anel-MDEV-24135
- 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`
-rw-r--r--mysql-test/lib/mtr_report.pm1
1 files changed, 1 insertions, 0 deletions
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