Bug 40444: Fix onboarding and installer selenium tests
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit c456dd86b4)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
8c6d148911
commit
6da4c46de5
|
|
@ -59,6 +59,9 @@ SKIP: {
|
|||
skip "Tests won't run if the database does not exist", 2 if $@;
|
||||
|
||||
{
|
||||
# Ignore expected warnings
|
||||
# DBD::mysql::db do failed: Table 'koha_kohadev.systempreferences' doesn't exist
|
||||
local $SIG{__WARN__} = sub { };
|
||||
my $dup_err;
|
||||
local *STDERR;
|
||||
open STDERR, ">>", \$dup_err;
|
||||
|
|
@ -67,6 +70,7 @@ SKIP: {
|
|||
SELECT * FROM systempreferences WHERE 1 = 0 |
|
||||
);
|
||||
close STDERR;
|
||||
|
||||
if ($dup_err) {
|
||||
skip "Tests won't run if the database is not empty", 2 if $@;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,6 +60,9 @@ SKIP: {
|
|||
skip "Tests won't run if the database does not exist", 3 if $@;
|
||||
|
||||
{
|
||||
# Ignore expected warnings
|
||||
# DBD::mysql::db do failed: Table 'koha_kohadev.systempreferences' doesn't exist
|
||||
local $SIG{__WARN__} = sub { };
|
||||
my $dup_err;
|
||||
local *STDERR;
|
||||
open STDERR, ">>", \$dup_err;
|
||||
|
|
@ -68,6 +71,7 @@ SKIP: {
|
|||
SELECT * FROM systempreferences WHERE 1 = 0 |
|
||||
);
|
||||
close STDERR;
|
||||
|
||||
if ($dup_err) {
|
||||
skip "Tests won't run if the database is not empty", 2 if $@;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue