diff --git a/tests/p_yum/yum_distroverpkg.sh b/tests/p_yum/yum_distroverpkg.sh index 57d84b5..3ea970a 100755 --- a/tests/p_yum/yum_distroverpkg.sh +++ b/tests/p_yum/yum_distroverpkg.sh @@ -1,13 +1,7 @@ #!/bin/sh -# Author: Athmane Madjoudj t_Log "Running $0 - Yum configuration has the correct distroverpkg value test." -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 $? +ProvierTag=$(grep distroverpkg /etc/yum.conf | cut -f2 -d'=') +rpm -q --whatprovides ${ProvierTag} | grep centos-release > /dev/null +t_CheckExitStatus $? \ No newline at end of file