Skip to content

Commit ff540d0

Browse files
Merge pull request os-autoinst#23165 from ricardobranco777/zypper_is_suse
bci_prepare: Limit block to openSUSE & SLES
2 parents e4075de + f70fd81 commit ff540d0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/containers/bci_prepare.pm

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,12 @@ sub run {
114114
# For BCI tests using podman, buildah package is also needed
115115
install_buildah_when_needed($host_distri) if ($engines =~ /podman/);
116116

117-
if (get_var('BCI_PREPARE') && is_sle("15-SP7+", get_var('HOST_VERSION', get_required_var('VERSION')))) {
118-
install_k3s();
119-
systemctl 'disable --now firewalld';
120-
install_helm();
117+
if ($host_distri =~ /opensuse|sles/) {
118+
if (get_var('BCI_PREPARE') && is_sle("15-SP7+", get_var('HOST_VERSION', get_required_var('VERSION')))) {
119+
install_k3s();
120+
systemctl 'disable --now firewalld';
121+
install_helm();
122+
}
121123
}
122124
}
123125

0 commit comments

Comments
 (0)