diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-06-03 17:16:25 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-06-03 17:16:25 +0200 |
commit | 2e7022eda0adcc5bc7e4681497a52d05cb096e3f (patch) | |
tree | 19ed18f7a4ee7094485695bce817f0ce52b76709 /selftest/output | |
parent | 7fddc71caa89ce5303b5f9fc84d2c50ed84f32de (diff) | |
download | samba-2e7022eda0adcc5bc7e4681497a52d05cb096e3f.tar.gz samba-2e7022eda0adcc5bc7e4681497a52d05cb096e3f.tar.bz2 samba-2e7022eda0adcc5bc7e4681497a52d05cb096e3f.zip |
selftest/plain: Allow caller to not specify the number of expected
testsuites to run.
Diffstat (limited to 'selftest/output')
-rw-r--r-- | selftest/output/plain.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/selftest/output/plain.pm b/selftest/output/plain.pm index 26056038f5..509e066910 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}) { |