diff options
author | Rasmus Johansson <razze@iki.fi> | 2020-05-20 09:37:05 +0000 |
---|---|---|
committer | Rasmus Johansson <razze@iki.fi> | 2020-05-20 09:59:49 +0000 |
commit | a6b4d4beff4da53b7b8922a175b0119eda69bf5f (patch) | |
tree | 94a36157da2883297e51084eb8adb9b48e27867e | |
parent | 6b2c8cac1b52bee934ac88cc21c6023f48b69e57 (diff) | |
download | mariadb-git-a6b4d4beff4da53b7b8922a175b0119eda69bf5f.tar.gz |
MDEV-22631 fix
-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 d228e9406e0..e553b0305b4 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; |