Bug 40444: Fix onboarding and installer selenium tests

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2025-07-28 10:38:27 +02:00 committed by Lucas Gass
parent e4b27be895
commit c456dd86b4
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 8 additions and 0 deletions

View File

@ -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 $@;
}

View File

@ -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 $@;
}