From 3d1a92b6e1cc8be181b25ad5ac6b75786031fac0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 22 Jun 2021 16:57:50 +0200 Subject: [PATCH] Bug 28572: Fix Search.t Signed-off-by: Jonathan Druart --- t/db_dependent/zebra_config.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/zebra_config.pl b/t/db_dependent/zebra_config.pl index 8dde14cf32..6137064a85 100755 --- a/t/db_dependent/zebra_config.pl +++ b/t/db_dependent/zebra_config.pl @@ -48,8 +48,10 @@ $ENV{'__DB_PORT__'} = C4::Context->config('port') // '3306'; $ENV{'__DB_USER__'} = C4::Context->config('user') // 'kohaadmin'; $ENV{'__DB_PASS__'} = C4::Context->config('pass') // 'katikoan'; -my @files = ( "$source/etc/koha-conf.xml", - ); +my @files = ( + "$source/etc/koha-conf.xml", + "$source/etc/log4perl.conf", +); find(sub { push @files, $File::Find::name if ( -f $File::Find::name ); }, "$source/etc/zebradb"); @@ -57,6 +59,7 @@ foreach my $file (@files) { my $target = "$file"; $target =~ s#$source#$destination#; $target =~ s#etc/zebradb#etc/koha/zebradb#; + $target =~ s#etc/log4perl\.conf#etc/koha/log4perl.conf#; unlink($target); make_path(dirname($target)); copy("$file", "$target"); -- 2.39.5