Bugzilla – Attachment 99858 Details for
Bug 24756
Occasional failures for Koha/XSLT/Security.t
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24756: Show the warnings on Jenkins
Bug-24756-Show-the-warnings-on-Jenkins.patch (text/plain), 1.39 KB, created by
Marcel de Rooy
on 2020-03-02 09:03:25 UTC
(
hide
)
Description:
Bug 24756: Show the warnings on Jenkins
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2020-03-02 09:03:25 UTC
Size:
1.39 KB
patch
obsolete
>From ebd47184068095a5b73792d90b3bdbdd181aa832 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 2 Mar 2020 09:00:57 +0000 >Subject: [PATCH] Bug 24756: Show the warnings on Jenkins >Content-Type: text/plain; charset=utf-8 > >Temporary measure to see which warnings Jenkins got while we cannot >reproduce them ourselves on D8, D9 and D10. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/db_dependent/Koha/XSLT/Security.t | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/XSLT/Security.t b/t/db_dependent/Koha/XSLT/Security.t >index a61f654160..7d0d9f29ad 100644 >--- a/t/db_dependent/Koha/XSLT/Security.t >+++ b/t/db_dependent/Koha/XSLT/Security.t >@@ -18,6 +18,7 @@ > # along with Koha; if not, see <http://www.gnu.org/licenses>. > > use Modern::Perl; >+use Data::Dumper qw/Dumper/; > use File::Temp qw/tempfile/; > use Test::More tests => 8; > use Test::Warn; >@@ -117,7 +118,7 @@ $engine->print_warns(1); > my @warn; > local $SIG{__WARN__} = sub { push @warn, $_[0]; }; > $output= $engine->transform({ xml => "<ignored/>", code => $xslt }); >- is( ( grep { /failed to load external/ } @warn ), 1, 'Expected import error' ); >+ is( ( grep { /failed to load external/ } @warn ), 1, 'Expected import error. Additional info: '.Dumper(@warn) ); > is( ( grep { /read_net/ } @warn ), 0, 'No read_net warn for remote import' ); > } > >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24756
:
99746
|
99753
|
99754
| 99858 |
99892
|
102270
|
102271