Bugzilla – Attachment 126651 Details for
Bug 19185
Web installer and onboarding tool selenium test
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19185: DB must exist but empty
Bug-19185-DB-must-exist-but-empty.patch (text/plain), 1.39 KB, created by
Jonathan Druart
on 2021-10-21 08:49:21 UTC
(
hide
)
Description:
Bug 19185: DB must exist but empty
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-10-21 08:49:21 UTC
Size:
1.39 KB
patch
obsolete
>From b78e23e6586ab19f56f32676eb53a9459a342e6a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 20 Oct 2021 11:08:02 +0200 >Subject: [PATCH] Bug 19185: DB must exist but empty > >--- > t/db_dependent/selenium/00-installation.t | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > >diff --git a/t/db_dependent/selenium/00-installation.t b/t/db_dependent/selenium/00-installation.t >index 42fd360c14..9ee3a27bea 100644 >--- a/t/db_dependent/selenium/00-installation.t >+++ b/t/db_dependent/selenium/00-installation.t >@@ -44,6 +44,24 @@ SKIP: { > eval { require Selenium::Remote::Driver; }; > skip "Selenium::Remote::Driver is needed for selenium tests.", 2 if $@; > >+ skip "This test must be run with an empty DB. We are using KOHA_TESTING that is set by our CI\nIf you really want to run it, set this env var.", 2 unless $ENV{KOHA_TESTING}; >+ >+ my $dbh = eval { C4::Context->dbh; }; >+ skip "Tests won't run if the database does not exist", 2 if $@; >+ >+ { >+ my $dup_err; >+ local *STDERR; >+ open STDERR, ">>", \$dup_err; >+ $dbh->do(q| >+ SELECT * FROM systempreferences WHERE 1 = 0 | >+ ); >+ close STDERR; >+ if ( $dup_err ) { >+ skip "Tests won't run if the database is not empty", 2 if $@; >+ } >+ } >+ > my $s = t::lib::Selenium->new; > > my $driver = $s->driver; >-- >2.25.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 19185
:
66508
|
68830
|
75088
|
75089
|
75090
|
81913
|
81914
|
81915
|
103406
|
103407
|
103408
|
103416
|
105796
|
105797
|
105798
|
105799
|
120273
|
126646
|
126647
|
126648
|
126649
|
126650
| 126651 |
126652
|
126819
|
126901
|
126918
|
126984