From 5c443f4a009f5e00aa2c449c1d446f2ee6dcbe26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Herranz=20Ram=C3=ADrez?= Date: Tue, 28 Nov 2023 13:07:00 +0100 Subject: [PATCH] Prevent install certs if is_opensuse --- tests/containers/host_configuration.pm | 2 +- tests/transactional/host_config.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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';