Commit db6e5bd9 authored by Rasmus Johansson's avatar Rasmus Johansson

MDEV-22631 fix

parent 12277e30
...@@ -467,7 +467,17 @@ sub mtr_report_stats ($$$$) { ...@@ -467,7 +467,17 @@ sub mtr_report_stats ($$$$) {
$test_time = sprintf("%.3f", $test->{timer} / 1000); $test_time = sprintf("%.3f", $test->{timer} / 1000);
$test->{'name'} =~ s/$current_suite\.//; $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'}; my $comment = $test->{'comment'};
$comment =~ s/[\"]//g; $comment =~ s/[\"]//g;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment