Bug 24673 (18.11.x U18 follow-up): Fixing t/db_dependent/Koha/XSLT/Security.t

The test t/db_dependent/Koha/XSLT/Security.t failed on Jenkins for U18
when this bug's patches were backported, due to it returning a different
IO error message for XSLT.

This patch adds a condition to the regex which matches both messages:
'Failed to load external entity' and 'Failed to load HTTP resource'

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
This commit is contained in:
Hayley Mapley 2020-04-14 16:00:40 +12:00
parent 9e593de322
commit d0facd2b73
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ EOT
$xslt_file = mytempfile($xslt);
$engine->print_warns(1);
warning_like { $output= $engine->transform( "<ignored/>", $xslt_file ); }
qr/I\/O warning : failed to load external entity/,
qr/I\/O warning : failed to load (external entity|HTTP resource)/,
'Remote import does not fail on read_net';
sub mytempfile {