[Koha-patches] [PATCH] Bug 16582 t/Price.t test should pass if Test::DBIx::Class is not available

Srdjan srdjan at catalyst.net.nz
Mon May 30 07:00:29 CEST 2016


From: Mark Tompsett <mtompset at hotmail.com>

This patch makes it so 00-load.t doesn't cause 'prove t' to
prematurely die before reaching other tests.

TEST PLAN
---------
1) prove t
   -- dies on 00-load.t
2) apply patch
3) prove t
   -- now t/Prices.t should be the failure.

Signed-off-by: Srdjan <srdjan at catalyst.net.nz>
---
 t/00-load.t | 1 +
 1 file changed, 1 insertion(+)

diff --git a/t/00-load.t b/t/00-load.t
index 21b62eb..f0ba029 100644
--- a/t/00-load.t
+++ b/t/00-load.t
@@ -60,6 +60,7 @@ find(
             $m =~ s{^.*/Koha/}{Koha/};
             $m =~ s{/}{::}g;
             return if $m =~ /Koha::NorwegianPatronDB/; # uses non-mandatory modules
+            return if $m =~ /[eE]lastic[sS]earch/; # Elastic search libraries are breaking tests
             use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'");
         },
     },
-- 
2.7.4


More information about the Koha-patches mailing list