Bug 20042: 00-load.t fails when Elasticsearch is not installed

00-load.t fails when Elasticsearch is not installed. Blocks packaging.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Mirko Tietgen 2018-01-19 13:59:43 +01:00 committed by Nick Clemens
parent 0b3e70c961
commit 5c2a90e80c
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ sub is_testable {
elsif ( $module_name =~ /Koha::SearchEngine::Elasticsearch::Search/xsm ) {
@needed_module_names = ( 'Catmandu::Store::ElasticSearch' );
}
elsif ( $module_name =~ /Koha::SearchEngine::Elasticsearch/xsm ) {
@needed_module_names = ( 'Search::Elasticsearch' );
}
elsif ( $module_name =~ /^Koha::ExternalContent/xsm ) {
@needed_module_names = ( 'WebService::ILS' );
}