Bugzilla – Attachment 66479 Details for
Bug 18897
Elastic related tests do not skip when ES modules are not installed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18897: Improve error message
Bug-18897-Improve-error-message.patch (text/plain), 1.52 KB, created by
Mark Tompsett
on 2017-08-25 13:59:11 UTC
(
hide
)
Description:
Bug 18897: Improve error message
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2017-08-25 13:59:11 UTC
Size:
1.52 KB
patch
obsolete
>From bb53e516060f5aa4dddc52f405d5be45374455a2 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Fri, 25 Aug 2017 07:38:06 -0400 >Subject: [PATCH] Bug 18897: Improve error message > >Test Plan: >$ git fetch >$ git checkout -b bug_18897 origin/master >$ git bz apply 18897 >-- interactive apply just the first patch >$ sudo apt-get remove libcatmandu-store-elasticsearch-perl >... >$ prove t/db_dependent/Koha_Elasticsearch_Indexer.t >-- Note that the message says the wrong library is missing. >$ git bz apply 18897 >-- interactive apply this patch >$ prove t/db_dependent/Koha_Elasticsearch_Indexer.t >-- Note that the message says the correct library is missing. >run the koha qa test tools > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > t/db_dependent/Koha_Elasticsearch_Indexer.t | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha_Elasticsearch_Indexer.t b/t/db_dependent/Koha_Elasticsearch_Indexer.t >index 1cb3a7d..ea65517 100644 >--- a/t/db_dependent/Koha_Elasticsearch_Indexer.t >+++ b/t/db_dependent/Koha_Elasticsearch_Indexer.t >@@ -29,7 +29,11 @@ my $schema = Koha::Database->schema(); > > eval { require Koha::SearchEngine::Elasticsearch::Indexer; }; > if ( $@ ) { >- my $es_dep_msg = "Required module Catmandu::Importer::MARC is not installed"; >+ my $missing_module; >+ if ( $@ =~ /Can\'t locate (.*?) / ) { >+ $missing_module = $1; >+ } >+ my $es_dep_msg = "Required module $missing_module is not installed"; > plan( skip_all => $es_dep_msg ); > } > else { >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18897
:
64818
|
66478
|
66479
|
66568
|
66569
|
66777
|
66779
|
67521
|
67522
|
67523
|
67539
|
67540
|
67553
|
67554
|
67555
|
67556
|
67557