[omd-commits] OMD Git: omd: tests: make number of tests flexible

git version control git at mathias-kettner.de
Mon Apr 18 11:23:15 CEST 2011


Module:   omd
Branch:   master
Commit:   927d9d9b3e958a4479279c8dbddf2fb3832eeead
URL:      http://omdistro.org/projects/omd/repository/revisions/927d9d9b3e958a4479279c8dbddf2fb3832eeead

Author:   Sven Nierlein <sven at nierlein.de>
Date:     Mon Apr 18 11:22:09 2011 +0200
Commiter: Sven Nierlein <sven at nierlein.de>
Date:     Mon Apr 18 11:22:09 2011 +0200

tests: make number of tests flexible

---

 t/03-distro-makefiles.t |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/t/03-distro-makefiles.t b/t/03-distro-makefiles.t
index b0c5257..2a61dfc 100644
--- a/t/03-distro-makefiles.t
+++ b/t/03-distro-makefiles.t
@@ -9,10 +9,7 @@ use lib('t');
 use FindBin;
 use lib "$FindBin::Bin/lib/lib/perl5";
 
-if(-d "distros") {
-    plan tests => 190;
-}
-else {
+unless(-d "distros") {
     plan( skip_all => 'need distros directory to run, please run from the project root' );
 }
 
@@ -36,3 +33,4 @@ for my $file (keys %{$all_confs}) {
     }
 }
 
+done_testing();



More information about the omd-commits mailing list