From ce5581a85e7acf06bf99dedfb0ef10d8b5640c70 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 3 Jan 2007 13:24:24 +0000 Subject: r20509: Warn about the fact that no tests have been run rather than showing division by zero errors. (This used to be commit 62f55b33949783a178dee9a36895c3423bdd625d) --- source4/script/subunit-summary | 5 +++++ 1 file changed, 5 insertions(+) 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() { 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, -- cgit