Bug 9054: 00-load should not try to load modules with optional dependencies
Prior to this patch, t/00-load.t was trying to load Koha::SearchEngine, which fails when Moose is not installed. Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
8263f5bdb4
commit
3ce177263b
|
|
@ -44,7 +44,7 @@ find(
|
|||
return unless $m =~ s/[.]pm$//;
|
||||
$m =~ s{^.*/Koha/}{Koha/};
|
||||
$m =~ s{/}{::}g;
|
||||
return if $m =~ /Koha::SearchEngine::/; # Koha::SearchEngine::* are experimental
|
||||
return if $m =~ /Koha::SearchEngine/; # Koha::SearchEngine::* are experimental
|
||||
return if $m =~ /Koha::Cache::Memcached/; # optional dependency
|
||||
use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'");
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue