1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug #43917 MTR2 does not report accurate test statistics when using the 'repeat=n'

option
In practice, only the last run of the test was counted
Add a separate counter rep_failures for failures before last run
This commit is contained in:
Bjorn Munch
2009-04-01 13:58:30 +02:00
parent f295ee522e
commit 86b0f7aae6
2 changed files with 15 additions and 2 deletions

View File

@ -555,9 +555,11 @@ sub run_test_server ($$$) {
# Repeat test $opt_repeat number of times
my $repeat= $result->{repeat} || 1;
if ($repeat < $opt_repeat)
# Don't repeat if test was skipped
if ($repeat < $opt_repeat && $result->{'result'} ne 'MTR_RES_SKIPPED')
{
$result->{retries}= 0;
$result->{rep_failures}++ if $result->{failures};
$result->{failures}= 0;
delete($result->{result});
$result->{repeat}= $repeat+1;