From 6747bde8b63753662a1d22be48091f7b968642f0 Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Mar 23 2015 17:17:36 +0000 Subject: Modified the script as now redhat-release content is different on 7 1503 --- diff --git a/tests/p_centos-release/centos-release_system_release.sh b/tests/p_centos-release/centos-release_system_release.sh index 380779e..40128ca 100755 --- a/tests/p_centos-release/centos-release_system_release.sh +++ b/tests/p_centos-release/centos-release_system_release.sh @@ -2,10 +2,12 @@ # Author: Athmane Madjoudj t_Log "Running $0 - /etc/centos-release has correct branding" -if (t_GetPkgRel basesystem | grep -q el6) -then - grep "CentOS" /etc/centos-release >/dev/null 2>&1 -else + +if [ "$centos_ver" = "5" ] ; then grep "CentOS" /etc/redhat-release >/dev/null 2>&1 +else + grep "CentOS" /etc/centos-release >/dev/null 2>&1 fi + t_CheckExitStatus $? +