From 3e26c96efce4528b804d2e371503c85fc7b859bc Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 14 Mar 2024 16:17:55 +0100 Subject: [PATCH] Bug 24879: Adjust tests Installer scripts cannot be run from the UI: debian/templates/apache-shared-intranet.conf:RewriteRule ^/cgi-bin/koha/(C4|debian|etc|installer/data|install_misc|Koha|misc|selenium|t|test|tmp|xt)/|\.PL$ /notfound [PT] Signed-off-by: Martin Renvoize (cherry picked from commit 6d61091f1ac8e66d2fdaac9a31530dfc7a7eb5fc) Signed-off-by: Fridolin Somers --- xt/find-missing-auth_checks.t | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xt/find-missing-auth_checks.t b/xt/find-missing-auth_checks.t index bc9af3a6c2..77909bd5c9 100755 --- a/xt/find-missing-auth_checks.t +++ b/xt/find-missing-auth_checks.t @@ -35,7 +35,6 @@ sub wanted { |circ |clubs |course_reserves - |installer |labels |members |patroncards @@ -62,7 +61,7 @@ my @missing_auth_check; FILE: foreach my $name (@files) { open( FILE, $name ) || die "cannot open file $name $!"; while ( my $line = ) { - for my $routine ( qw( get_template_and_user check_cookie_auth checkauth check_api_auth ) ) { + for my $routine ( qw( get_template_and_user check_cookie_auth checkauth check_api_auth C4::Service->init ) ) { next FILE if $line =~ m|^[^#]*$routine|; } } -- 2.20.1