Skip to content

Commit

Permalink
Merge pull request os-autoinst#20775 from mloviska/sle12sp5_aarch64_d…
Browse files Browse the repository at this point in the history
…ocker

Enable docker testing in sle12sp5 LTSS in aarch64
  • Loading branch information
mloviska authored Dec 11, 2024
2 parents 6a1a881 + a214e06 commit aaeee15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/containers/common.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ use bootloader_setup 'add_grub_cmdline_settings';
use serial_terminal 'select_serial_terminal';
use power_action_utils 'power_action';
use Mojo::JSON;
use version_utils qw(is_sle);
use Utils::Architectures qw(is_aarch64);

our @EXPORT = qw(is_unreleased_sle install_podman_when_needed install_docker_when_needed install_containerd_when_needed
test_container_runtime test_container_image
Expand Down Expand Up @@ -108,7 +110,7 @@ sub install_docker_when_needed {
} else {
if ($host_os =~ 'sle') {
# We may run openSUSE with DISTRI=sle and openSUSE does not have SUSEConnect
activate_containers_module;
activate_containers_module unless is_sle('=12-SP5') && is_aarch64;

# Temporarly enable LTSS product on LTSS systems where it is not present
if (get_var('SCC_REGCODE_LTSS') && script_run('test -f /etc/products.d/SLES-LTSS.prod') != 0 && !main_common::is_updates_tests) {
Expand Down
2 changes: 1 addition & 1 deletion lib/containers/container_images.pm
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ sub test_opensuse_based_image {
test_zypper_on_container($runtime, $image);
build_and_run_image(base => $image, runtime => $runtime);
# zypper-docker package has been excluded from sle starting with 15-SP6
if (is_sle('<15-SP6') && $runtime->runtime eq 'docker') {
if (is_sle('<15-SP6') && $runtime->runtime eq 'docker' && script_run('zypper -q se zypper-docker') == 0) {
build_with_zypper_docker(image => $image, runtime => $runtime, version => $version);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/main_containers.pm
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ sub load_host_tests_docker {
load_compose_tests($run_args);
loadtest('containers/seccomp', run_args => $run_args, name => $run_args->{runtime} . "_seccomp") unless is_sle('<15');
# Expected to work anywhere except of real HW backends, PC and Micro
unless (is_generalhw || is_ipmi || is_public_cloud || is_openstack || is_sle_micro || is_microos || is_leap_micro) {
unless (is_generalhw || is_ipmi || is_public_cloud || is_openstack || is_sle_micro || is_microos || is_leap_micro || (is_sle('=12-SP5') && is_aarch64)) {
loadtest 'containers/validate_btrfs';
}
}
Expand Down

0 comments on commit aaeee15

Please sign in to comment.