summaryrefslogtreecommitdiff
path: root/mysql-test/lib
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-05-20 11:13:40 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-05-20 11:13:40 +0300
commite380f447421882d8a0700e8821e55e2786b426ad (patch)
tree63a1657bc9c9add1233a1c3b7dd41e34110f0236 /mysql-test/lib
parent1893a1370d744408a16548196a6dc62136157399 (diff)
parent6b2c8cac1b52bee934ac88cc21c6023f48b69e57 (diff)
downloadmariadb-git-e380f447421882d8a0700e8821e55e2786b426ad.tar.gz
Merge 10.1 into 10.2
Diffstat (limited to 'mysql-test/lib')
-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 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<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);
}
}