From f9996a6b7c8251410220b34dc9781d5f6b22b434 Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Jul 27 2019 20:54:35 +0000 Subject: Fixed yum plugin fastesmirror test for c8 Signed-off-by: Fabian Arrotin --- diff --git a/tests/p_yum-plugin-fastestmirror/0_install_yum-plugin-fastestmirror.sh b/tests/p_yum-plugin-fastestmirror/0_install_yum-plugin-fastestmirror.sh index 6df0b0a..48dd7a3 100755 --- a/tests/p_yum-plugin-fastestmirror/0_install_yum-plugin-fastestmirror.sh +++ b/tests/p_yum-plugin-fastestmirror/0_install_yum-plugin-fastestmirror.sh @@ -2,6 +2,10 @@ t_Log "Running $0 - package should already be installed" +if [ "$centos_ver" -eq "8" ] ; then + t_Log "yum is replaced by dnf on el8. SKIP" + exit 0 +fi rpm -qa | egrep -q 'yum-.*fastestmirror' t_CheckExitStatus $? diff --git a/tests/p_yum-plugin-fastestmirror/10-fastestmirror.sh b/tests/p_yum-plugin-fastestmirror/10-fastestmirror.sh index 164b146..ded3f83 100755 --- a/tests/p_yum-plugin-fastestmirror/10-fastestmirror.sh +++ b/tests/p_yum-plugin-fastestmirror/10-fastestmirror.sh @@ -2,6 +2,12 @@ # Ensure plugin is enabled : +if [ "$centos_ver" -eq "8" ] ; then + t_Log "yum is replaced by dnf on el8. SKIP" + exit 0 +fi + + if [ "$PRE_UPDATES" == "1" ]; then t_Log "skipping $0 for pre update testing" exit 0