From 97e744ad9604bd7611846da0b9c0c328dc80f262 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Wed, 26 Feb 2020 08:56:44 -0600 Subject: [PATCH] test: Need to add `-y` flags to `(dnf|yum) update` Without this, the containers will hang if an update is available. --- test/test-build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-build.sh b/test/test-build.sh index cdb2b07..d519d03 100755 --- a/test/test-build.sh +++ b/test/test-build.sh @@ -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*') else if command -v dnf > /dev/null ; then - dnf update kernel-devel + dnf update -y dnf kernel-devel else - yum update kernel-devel + yum update -y kernel-devel fi KERNELS=$(find /usr/src/kernels -maxdepth 1 -type d -regextype sed -regex '.*[.]\(el\|fc\).*') fi