Bugzilla – Attachment 113811 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: Remove 4 failing tests from t/db_dependent/www/search_utf8.t
Bug-26031-Remove-4-failing-tests-from-tdbdependent.patch (text/plain), 5.67 KB, created by
Mason James
on 2020-11-19 13:12:19 UTC
(
hide
)
Description:
Bug 26031: Remove 4 failing tests from t/db_dependent/www/search_utf8.t
Filename:
MIME Type:
Creator:
Mason James
Created:
2020-11-19 13:12:19 UTC
Size:
5.67 KB
patch
obsolete
>From cd2e8949008125e3448ac719bd8f0405cb5e878c Mon Sep 17 00:00:00 2001 >From: Mason James <mtj@kohaaloha.com> >Date: Fri, 20 Nov 2020 02:10:28 +1300 >Subject: [PATCH] Bug 26031: Remove 4 failing tests from > t/db_dependent/www/search_utf8.t >Content-Type: text/plain; charset="utf-8" > >to test... >1/ apply patch >2/ run test >3/ observe PASS > >root@kohadevbox:/kohadevbox/koha# export KOHA_INTRANET_URL="http://kohadev-intra.myDNSname.org:8081" >root@kohadevbox:/kohadevbox/koha# export KOHA_OPAC_URL="http://kohadev.myDNSname.org:8080" >root@kohadevbox:/kohadevbox/koha# prove -v ./t/db_dependent/www/search_utf8.t >1..87 >ok 1 - connect to intranet >ok 2 - login to staff interface >ok 3 - load main page >ok 4 - open tools module >ok 5 - go to stage MARC >ok 6 - uploaded file >ok 7 - upload succeeded >ok 8 - reopen stage MARC page >ok 9 - stage MARC >ok 10 - have job ID >ok 11 - job was completed >ok 12 - reopen stage MARC page at end of upload >ok 13 - stage MARC >ok 14 - view batch >ok 15 - imported records into catalog >ok 16 - got search on intranet >ok 17 - got search on intranet >ok 18 - Base is like "(?^u:search.pl\?advsearch=1&idx=kw&q=%CE%91%CE%B8%CE%AE%CE%BD%CE%B1)" >ok 19 - UTF-8 are multi-byte. Good >ok 20 - UTF-8 chars are correctly present. Good >ok 21 - got opac >ok 22 - got opac >ok 23 - Base is like "(?^u:opac-search.pl\?(idx=&)?q=%CE%91%CE%B8%CE%AE%CE%BD%CE%B1)" >ok 24 - Base does not contain an idx >ok 25 - UTF-8 are multi-byte. Good >ok 26 - UTF-8 chars are correctly present. Good >ok 27 - view and clean batch >ok 28 - biblio on intranet >ok 29 - biblio deleted >ok 30 - connect to intranet >ok 31 - login to staff interface >ok 32 - load main page >ok 33 - open tools module >ok 34 - go to stage MARC >ok 35 - uploaded file >ok 36 - upload succeeded >ok 37 - reopen stage MARC page >ok 38 - stage MARC >ok 39 - have job ID >ok 40 - job was completed >ok 41 - reopen stage MARC page at end of upload >ok 42 - stage MARC >ok 43 - view batch >ok 44 - imported records into catalog >ok 45 - got search on intranet >ok 46 - got search on intranet >ok 47 - Base is like "(?^u:search.pl\?advsearch=1&idx=kw&q=Ram%C3%B2n)" >ok 48 - UTF-8 are multi-byte. Good >ok 49 - UTF-8 chars are correctly present. Good >ok 50 - got opac >ok 51 - got opac >ok 52 - Base is like "(?^u:opac-search.pl\?(idx=&)?q=Ram%C3%B2n)" >ok 53 - Base does not contain an idx >ok 54 - UTF-8 are multi-byte. Good >ok 55 - UTF-8 chars are correctly present. Good >ok 56 - view and clean batch >ok 57 - biblio on intranet >ok 58 - biblio deleted >ok 59 - connect to intranet >ok 60 - login to staff interface >ok 61 - load main page >ok 62 - open tools module >ok 63 - go to stage MARC >ok 64 - uploaded file >ok 65 - upload succeeded >ok 66 - reopen stage MARC page >ok 67 - stage MARC >ok 68 - have job ID >ok 69 - job was completed >ok 70 - reopen stage MARC page at end of upload >ok 71 - stage MARC >ok 72 - view batch >ok 73 - imported records into catalog >ok 74 - got search on intranet >ok 75 - got search on intranet >ok 76 - Base is like "(?^u:search.pl\?advsearch=1&idx=kw&q=%F0%A0%BB%BAtomasito%F0%A0%BB%BA)" >ok 77 - UTF-8 are multi-byte. Good >ok 78 - UTF-8 chars are correctly present. Good >ok 79 - got opac >ok 80 - got opac >ok 81 - Base is like "(?^u:opac-search.pl\?(idx=&)?q=%F0%A0%BB%BAtomasito%F0%A0%BB%BA)" >ok 82 - Base does not contain an idx >ok 83 - UTF-8 are multi-byte. Good >ok 84 - UTF-8 chars are correctly present. Good >ok 85 - view and clean batch >ok 86 - biblio on intranet >ok 87 - biblio deleted >ok >All tests successful. >Files=1, Tests=87, 127 wallclock secs ( 0.06 usr 0.02 sys + 3.00 cusr 0.99 csys = 4.07 CPU) >Result: PASS > >real 2m6.709s >user 0m3.124s >sys 0m1.032s >--- > t/db_dependent/www/search_utf8.t | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > >diff --git a/t/db_dependent/www/search_utf8.t b/t/db_dependent/www/search_utf8.t >index 499e618..d98c921 100755 >--- a/t/db_dependent/www/search_utf8.t >+++ b/t/db_dependent/www/search_utf8.t >@@ -75,7 +75,7 @@ elsif ( not $opac ) { > plan skip_all => "Tests skip. You must set env. variable KOHA_OPAC_URL to do tests\n"; > } > else { >- plan tests => 99; >+ plan tests => 87; > } > > $intranet =~ s#/$##; >@@ -263,7 +263,7 @@ sub test_search{ > 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|Publication details: $publisher|, ) or diag($diag->()); >+# like( $intra_text, qr|Publication details: $publisher|, ) or diag($diag->()); > > $agent->get_ok( "$intranet/cgi-bin/koha/catalogue/search.pl" , "got search on intranet"); > $agent->form_number(5); >@@ -272,7 +272,7 @@ sub test_search{ > $agent->click(); > $intra_text = $agent->text(); > >- like( $intra_text, qr|Publication details: $publisher|, ); >+# like( $intra_text, qr|Publication details: $publisher|, ); > my $expected_base = q|search.pl\?advsearch=1&idx=kw&q=| . uri_escape_utf8( $publisher ); > $agent->base_like(qr|$expected_base|, ); > >@@ -286,7 +286,7 @@ sub test_search{ > $agent->field( 'idx', '' ); > $agent->click( ); > my $opac_text = $agent->text() ; >- like( $opac_text, qr|Publication details: $publisher|, ); >+# like( $opac_text, qr|Publication details: $publisher|, ); > > $agent->get_ok( "$opac" , "got opac"); > $agent->form_name('searchform'); >@@ -295,7 +295,7 @@ sub test_search{ > $agent->click(); > $opac_text = $agent->text(); > >- like( $opac_text, qr|Publication details: $publisher|, ); >+# like( $opac_text, qr|Publication details: $publisher|, ); > $expected_base = q|opac-search.pl\?(idx=&)?q=| . uri_escape_utf8( $publisher ); > $agent->base_like(qr|$expected_base|, ); > # Test added on BZ 14909 in addition to making the empty idx= optional >-- >2.1.4
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