summaryrefslogtreecommitdiff
path: root/mysql-test/lib/mtr_report.pm
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-05-20 11:41:51 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-05-20 11:41:51 +0300
commitf4f0ef3e3771281b7f25bc26cc2cbf4e2dbe325a (patch)
tree78145ee56dede4db4e0851f575cd4fffb4f2e649 /mysql-test/lib/mtr_report.pm
parentd4f97e2086848cedfdd35a6c1cf286f8dad26c5c (diff)
parente380f447421882d8a0700e8821e55e2786b426ad (diff)
downloadmariadb-git-f4f0ef3e3771281b7f25bc26cc2cbf4e2dbe325a.tar.gz
Merge 10.2 into 10.3
Diffstat (limited to 'mysql-test/lib/mtr_report.pm')
-rw-r--r--mysql-test/lib/mtr_report.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/mysql-test/lib/mtr_report.pm b/mysql-test/lib/mtr_report.pm
index 25d3256ca4e..d79a71b2fb4 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<failure message="" type="MTR_RES_FAILED">\n<![CDATA[$logcontents]]>\n\t\t\t</failure>\n\t\t</testcase>\n);
@@ -639,6 +639,8 @@ sub mtr_error (@) {
}
else
{
+ use Carp qw(cluck);
+ cluck "Error happened" if $verbose > 0;
exit(1);
}
}