From e9a33a5392e56360db7d599db976df9f741bf9f5 Mon Sep 17 00:00:00 2001 From: Rasmus Johansson Date: Tue, 19 May 2020 09:10:24 +0000 Subject: MDEV-22631 some test causes MTR interruption without generating summary and XML --- mysql-test/lib/mtr_report.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mysql-test/lib/mtr_report.pm') diff --git a/mysql-test/lib/mtr_report.pm b/mysql-test/lib/mtr_report.pm index 0b99eafa4cf..d228e9406e0 100644 --- a/mysql-test/lib/mtr_report.pm +++ b/mysql-test/lib/mtr_report.pm @@ -473,7 +473,7 @@ sub mtr_report_stats ($$$$) { $comment =~ s/[\"]//g; # 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'}) { + if ($test->{'result'} eq "MTR_RES_FAILED" || $test->{'retries'} > 0) { my $logcontents = $test->{'logfile-failed'} || $test->{'logfile'}; $xml_report .= qq(>\n\t\t\t\n\n\t\t\t\n\t\t\n); @@ -639,6 +639,8 @@ sub mtr_error (@) { } else { + use Carp qw(cluck); + cluck "Error happened" if $verbose > 0; exit(1); } } -- cgit v1.2.1