bstinson / centos / t_functional

Forked from centos/t_functional 3 years ago
Clone

Blame tests/p_centos-release/centos-release_system_release.sh

Athmane Madjoudj 5827ae
#!/bin/sh
Athmane Madjoudj 5827ae
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 5827ae
Karanbir Singh 106bcf
t_Log "Running $0 - /etc/centos-release has correct branding"
Athmane Madjoudj 66dad5
if (t_GetPkgRel basesystem | grep -q el6)
Athmane Madjoudj 66dad5
then
Athmane Madjoudj 66dad5
    grep "CentOS" /etc/centos-release >/dev/null 2>&1
Athmane Madjoudj 66dad5
else
Athmane Madjoudj 66dad5
    grep "CentOS" /etc/redhat-release >/dev/null 2>&1
Athmane Madjoudj 66dad5
fi
Athmane Madjoudj 5827ae
t_CheckExitStatus $?