diff --git a/tests/containers/host_configuration.pm b/tests/containers/host_configuration.pm index 26edc6fd6510..1699dc139f0c 100644 --- a/tests/containers/host_configuration.pm +++ b/tests/containers/host_configuration.pm @@ -28,7 +28,7 @@ sub run { # Check routing table is well configured if ($host_distri =~ /sles|opensuse/) { zypper_call("--quiet up", timeout => $update_timeout); - ensure_ca_certificates_suse_installed() if ($host_distri =~ /sles/); + ensure_ca_certificates_suse_installed() unless is_opensuse; } else { if ($host_distri eq 'ubuntu') { diff --git a/tests/transactional/host_config.pm b/tests/transactional/host_config.pm index e3e63fb560f7..d7f706adaa7d 100644 --- a/tests/transactional/host_config.pm +++ b/tests/transactional/host_config.pm @@ -14,7 +14,7 @@ use testapi; use transactional qw(process_reboot); use bootloader_setup qw(change_grub_config); use utils qw(ensure_ca_certificates_suse_installed zypper_call); -use version_utils qw(is_alp is_bootloader_grub2 is_bootloader_sdboot); +use version_utils qw(is_alp is_bootloader_grub2 is_bootloader_sdboot is_opensuse); sub run { select_console 'root-console';