Bug 39877: Prevent files to be processed twice

If the file had a failure and still has, we should not list it twice.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2025-07-29 10:03:13 +02:00 committed by Lucas Gass
parent 7f93977cd7
commit 03e52ef3e7
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ use File::Path qw(make_path);
use File::Slurp qw(read_file write_file);
use File::Basename;
use JSON qw(from_json to_json);
use List::MoreUtils qw(firstval);
use List::MoreUtils qw(firstval uniq);
use Koha::Devel::Files;
@ -143,7 +143,7 @@ sub get_files_to_test {
}
@files = $dev_files->ls_files($filetype) if !$self->{incremental_run} || $no_history;
return @files;
return uniq @files;
}
=head2 report_results