From: Jelmer Vernooij Date: Wed, 3 Jun 2009 15:16:25 +0000 (+0200) Subject: selftest/plain: Allow caller to not specify the number of expected X-Git-Tag: tdb-1.1.5~342 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e7022eda0adcc5bc7e4681497a52d05cb096e3f;p=thirdparty%2Fsamba.git selftest/plain: Allow caller to not specify the number of expected testsuites to run. --- diff --git a/selftest/output/plain.pm b/selftest/output/plain.pm index 26056038f53..509e0669102 100644 --- a/selftest/output/plain.pm +++ b/selftest/output/plain.pm @@ -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}) {