Skip to content

Commit

Permalink
MDEV-22631 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmushoj committed May 20, 2020
1 parent f4f0ef3 commit 21e7176
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion mysql-test/lib/mtr_report.pm
Expand Up @@ -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;
Expand Down

0 comments on commit 21e7176

Please sign in to comment.