diff options
author | Rasmus Johansson <razze@iki.fi> | 2020-05-20 09:37:05 +0000 |
---|---|---|
committer | Rasmus Johansson <razze@iki.fi> | 2020-05-20 10:05:18 +0000 |
commit | 96bc626b8ffe7836c6393adb6586a415e243adcd (patch) | |
tree | e130b08afe51eb3766be58c75cdfd187939f850b /mysql-test/lib | |
parent | d8dc3c72b6b18ace73f521b9191c8a53c1cb5e78 (diff) | |
download | mariadb-git-96bc626b8ffe7836c6393adb6586a415e243adcd.tar.gz |
MDEV-22631 fix
Diffstat (limited to 'mysql-test/lib')
-rw-r--r-- | mysql-test/lib/mtr_report.pm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mysql-test/lib/mtr_report.pm b/mysql-test/lib/mtr_report.pm index d79a71b2fb4..766f5e47e95 100644 --- a/mysql-test/lib/mtr_report.pm +++ b/mysql-test/lib/mtr_report.pm @@ -467,7 +467,17 @@ sub mtr_report_stats ($$$$) { $test_time = sprintf("%.3f", $test->{timer} / 1000); $test->{'name'} =~ s/$current_suite\.//; - $xml_report .= qq(\t\t<testcase assertions="" classname="$current_suite" name="$test->{'name'}" status="$test->{'result'}" time="$test_time"); + + my $test_result; + + # if a test case has to be retried it should have the result MTR_RES_FAILED in jUnit XML + if ($test->{'retries'} > 0) { + $test_result = "MTR_RES_FAILED"; + } else { + $test_result = $test->{'result'}; + } + + $xml_report .= qq(\t\t<testcase assertions="" classname="$current_suite" name="$test->{'name'}" status="$test_result" time="$test_time"); my $comment = $test->{'comment'}; $comment =~ s/[\"]//g; |