Bugzilla – Attachment 108798 Details for
Bug 26031
www/search_utf8.t is failing randomly and must be removed/replaced
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26031: Add diagnostic to search_utf8.t
Bug-26031-Add-diagnostic-to-searchutf8t.patch (text/plain), 1.41 KB, created by
Jonathan Druart
on 2020-08-21 10:29:55 UTC
(
hide
)
Description:
Bug 26031: Add diagnostic to search_utf8.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-08-21 10:29:55 UTC
Size:
1.41 KB
patch
obsolete
>From 746dde622ccb4704e8c20283b3dd51fd5b0e460f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 21 Aug 2020 10:06:57 +0200 >Subject: [PATCH] Bug 26031: Add diagnostic to search_utf8.t > >--- > t/db_dependent/www/search_utf8.t | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/www/search_utf8.t b/t/db_dependent/www/search_utf8.t >index 859b0114a9..25f7d9d60e 100644 >--- a/t/db_dependent/www/search_utf8.t >+++ b/t/db_dependent/www/search_utf8.t >@@ -256,7 +256,14 @@ sub test_search{ > $agent->field('q', $search_key); > $agent->click(); > my $intra_text = $agent->text() ; >- like( $intra_text, qr|Publisher: $publisher|, ); >+ my $diag = sub { >+ my $pref = 'XSLTResultsDisplay'; >+ my $xslt_file = C4::Context->preference('marcflavour') . 'slim2intranetResults.xsl'; >+ my $xslt_filepath = C4::XSLT::_get_best_default_xslt_filename( C4::Context->config('intrahtdocs'), C4::Context->preference("template"), 'en', $xslt_file ); >+ return sprintf( "===DIAG===\n%s is %s\n%s %s\n==========", $pref, C4::Context->preference($pref), $xslt_filepath, ( -f $xslt_filepath ? 'exists' : 'does not exist' )); >+ }; >+ >+ like( $intra_text, qr|Publisher: $publisher|, ) or diag($diag->()); > > $agent->get_ok( "$intranet/cgi-bin/koha/catalogue/search.pl" , "got search on intranet"); > $agent->form_number(5); >-- >2.20.1
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 26031
:
108780
|
108798
|
113793
|
113796
|
113811
|
113812