mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
selftest: Avoid decreasing total testsuites if the original total is not
known.
This commit is contained in:
parent
24f01e70aa
commit
9bdf76c9c2
@ -143,7 +143,11 @@ sub end_test($$$$$)
|
||||
my ($self, $parents, $testname, $result, $unexpected, $reason) = @_;
|
||||
|
||||
if ($#$parents == -1) {
|
||||
$self->end_testsuite($testname, $result, $unexpected, $reason);
|
||||
if ($result eq "skip") {
|
||||
$self->skip_testsuite($testname, $reason);
|
||||
} else {
|
||||
$self->end_testsuite($testname, $result, $unexpected, $reason);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@ -233,7 +237,9 @@ sub skip_testsuite($$)
|
||||
|
||||
push (@{$self->{skips}->{$reason}}, $name);
|
||||
|
||||
$self->{totalsuites}--;
|
||||
if ($self->{totalsuites}) {
|
||||
$self->{totalsuites}--;
|
||||
}
|
||||
}
|
||||
|
||||
1;
|
||||
|
Loading…
Reference in New Issue
Block a user