Bug 8890: don't try to load DB-dependent modules
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Tue, 16 Oct 2012 09:14:42 +0000 (05:14 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 24 Oct 2012 15:52:39 +0000 (17:52 +0200)
C4::Members::Statistics uses the database in its BEGIN {} block,
which breaks the package build process. This patch causes it to be
skipped in the 00-load test.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
t/00-load.t

index da9008d..afff47d 100644 (file)
@@ -29,6 +29,7 @@ find({
            return if $m =~ /C4::Reports::Guided/; # DB
            return if $m =~ /C4::Serials/; # DB
            return if $m =~ /C4::VirtualShelves::Page/; # DB
+        return if $m =~ /C4::Members::Statistics/; # DB
         use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'");
     },
 }, $lib);