diff --git a/tests/p_yum/yum_distroverpkg.sh b/tests/p_yum/yum_distroverpkg.sh index e99cf7b..57d84b5 100755 --- a/tests/p_yum/yum_distroverpkg.sh +++ b/tests/p_yum/yum_distroverpkg.sh @@ -3,6 +3,11 @@ t_Log "Running $0 - Yum configuration has the correct distroverpkg value test." -grep "distroverpkg=centos-release" /etc/yum.conf >/dev/null 2>&1 +if (t_GetPkgRel basesystem | grep -q el6) +then + grep "distroverpkg=centos-release" /etc/yum.conf >/dev/null 2>&1 +else + echo "Test skipped for CentOS <= 5" +fi t_CheckExitStatus $?