Skip to content

Commit

Permalink
Merge pull request #20892 from ricardobranco777/centos10
Browse files Browse the repository at this point in the history
containers: Enable BCI tests on CentOS 10
  • Loading branch information
ricardobranco777 authored Jan 3, 2025
2 parents 5cacdd3 + b068f7b commit 7b7c063
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/containers/update_host.pm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ sub run {
# https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1950314
script_retry("yes yes | DEBIAN_FRONTEND=noninteractive apt-get upgrade -y", timeout => $update_timeout);
} elsif ($host_distri eq 'centos') {
assert_script_run("dhclient -v");
# dhclient is no longer available in CentOS 10
script_run("dhclient -v");
script_retry("dnf update -y --nobest", timeout => $update_timeout);
} elsif ($host_distri eq 'rhel') {
script_retry("dnf update -y", timeout => $update_timeout);
Expand Down

0 comments on commit 7b7c063

Please sign in to comment.