1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

selftest/plain: Allow caller to not specify the number of expected

testsuites to run.
This commit is contained in:
Jelmer Vernooij 2009-06-03 17:16:25 +02:00
parent 7fddc71caa
commit 2e7022eda0

View File

@ -65,7 +65,11 @@ sub start_testsuite($$)
$self->{test_output}->{$name} = "" unless($self->{verbose});
my $out = "";
$out .= "[$self->{index}/$self->{totalsuites} in ".$duration."s";
$out .= "[$self->{index}";
if ($self->{totalsuites}) {
$out .= "/$self->{totalsuites}";
}
$out.= " in ".$duration."s";
$out .= sprintf(", %d errors", ($#{$self->{suitesfailed}}+1)) if ($#{$self->{suitesfailed}} > -1);
$out .= "] $name";
if ($self->{immediate}) {