test: Need to add -y flags to (dnf|yum) update

Without this, the containers will hang if an update is available.
This commit is contained in:
Shaun Ruffell 2020-02-26 08:56:44 -06:00
parent 90e8a54e3a
commit 97e744ad96

View File

@ -16,9 +16,9 @@ if command -v apt >/dev/null; then
KERNELS=$(find /usr/src -maxdepth 1 -type d -name 'linux-headers-*' -not -name '*common*') KERNELS=$(find /usr/src -maxdepth 1 -type d -name 'linux-headers-*' -not -name '*common*')
else else
if command -v dnf > /dev/null ; then if command -v dnf > /dev/null ; then
dnf update kernel-devel dnf update -y dnf kernel-devel
else else
yum update kernel-devel yum update -y kernel-devel
fi fi
KERNELS=$(find /usr/src/kernels -maxdepth 1 -type d -regextype sed -regex '.*[.]\(el\|fc\).*') KERNELS=$(find /usr/src/kernels -maxdepth 1 -type d -regextype sed -regex '.*[.]\(el\|fc\).*')
fi fi