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 <martin.renvoize@ptfs-europe.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
This commit is contained in:
Jonathan Druart 2024-03-14 16:17:55 +01:00 committed by Wainui Witika-Park
parent c18b672c04
commit 32e13b4792
1 changed files with 1 additions and 2 deletions

View File

@ -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 = <FILE> ) {
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|;
}
}