diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-01-03 13:24:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:36:03 -0500 |
commit | ce5581a85e7acf06bf99dedfb0ef10d8b5640c70 (patch) | |
tree | 863cdd562542bcd814ae637768e0588f3a4ca9d1 /source4/script | |
parent | cc8e2febb897f6e6a41c5062e533e332304843a9 (diff) | |
download | samba-ce5581a85e7acf06bf99dedfb0ef10d8b5640c70.tar.gz samba-ce5581a85e7acf06bf99dedfb0ef10d8b5640c70.tar.bz2 samba-ce5581a85e7acf06bf99dedfb0ef10d8b5640c70.zip |
r20509: Warn about the fact that no tests have been run rather than showing division by
zero errors.
(This used to be commit 62f55b33949783a178dee9a36895c3423bdd625d)
Diffstat (limited to 'source4/script')
-rwxr-xr-x | source4/script/subunit-summary | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/script/subunit-summary b/source4/script/subunit-summary index f407e20060..aec50ed02a 100755 --- a/source4/script/subunit-summary +++ b/source4/script/subunit-summary @@ -57,6 +57,11 @@ while(<STDIN>) { print "\n" if ($opt_progress); +if ($numtests == 0) { + print "No tests run\n"; + exit(0); +} + printf("%d%%: %d tests, %d succeeded, %d failed, %d skipped\n", ($numsuccess / $numtests * 100), $numtests, |