From 662020e21b7c70c4d93a96c0abb2ae89ef5f3302 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 13 Aug 2026 10:07:41 +0000 Subject: [PATCH] Bug 42714: RM follow-up: Fix tests prove t/00-load.t prove xt/author/pod_coverage.t Signed-off-by: Pedro Amorim --- t/00-load.t | 1 + xt/author/pod_coverage.t | 2 ++ 2 files changed, 3 insertions(+) diff --git a/t/00-load.t b/t/00-load.t index 60db7ef97d..172ccce11d 100755 --- a/t/00-load.t +++ b/t/00-load.t @@ -62,6 +62,7 @@ find( return unless $m =~ s/[.]pm$//; $m =~ s{^.*/Koha/}{Koha/}; $m =~ s{/}{::}g; + return if $m eq 'Koha::Script'; # has an INIT block, which can't run when required at runtime here if ( is_testable($m) ) { use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'"); } diff --git a/xt/author/pod_coverage.t b/xt/author/pod_coverage.t index 5ebf7afa06..fb99c58c39 100755 --- a/xt/author/pod_coverage.t +++ b/xt/author/pod_coverage.t @@ -28,6 +28,8 @@ use Koha::Devel::Files; my $dev_files = Koha::Devel::Files->new( { context => 'tidy' } ); my @files = $dev_files->ls_perl_files; +@files = grep { $_ ne 'Koha/Script.pm' } @files; # has an INIT block, which can't run when required at runtime here + plan tests => scalar(@files) + 1; for my $file (@files) {