From 995589e349d5d39c8ecdbf6efca4f9c9bac4544d Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Aug 30 2011 10:54:30 +0000 Subject: Fix Yum distroverpkg test on CentOS 5 --- 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 $?