Skip to content

Commit

Permalink
Tune the testing so it can be done on Github
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Jun 6, 2024
1 parent 1668af0 commit 1def819
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/acdhOeaw/arche/fileChecker/CheckFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,9 @@ public function check13RasterImage(FileInfo $fi): void {
$retCode = null;
exec($cmd, $output, $retCode);
if ($retCode !== 0) {
$msg = implode("\n", array_filter($output, fn($x) => str_starts_with($x, 'ERROR')));
$fi->error("Corrupted image", $msg);
// not reliable due to different reporting on different gdal and python versions
//$msg = implode("\n", array_filter($output, fn($x) => str_starts_with($x, 'ERROR')));
$fi->error("Corrupted image", '');
}
if (file_exists($tmpfile)) {
unlink($tmpfile);
Expand Down

0 comments on commit 1def819

Please sign in to comment.