Blame tests/p_yum/yum_distroverpkg.sh

Athmane Madjoudj 5827ae
#!/bin/sh
Athmane Madjoudj 5827ae
Athmane Madjoudj 5827ae
t_Log "Running $0 - Yum configuration has the correct distroverpkg value test."
Athmane Madjoudj 5827ae
Pablo Greco a44872
if [ "$centos_ver" -ge "8" ] ; then
Pablo Greco a44872
   t_Log "CentOS$ver, SKIP"
Pablo Greco a44872
   exit 0
Pablo Greco a44872
fi
2b3708
#add centos-userland-release for armhfp
2b3708
uname_arch=$(uname -m)
2b3708
if [ "$uname_arch" == "armv7l" ]; then
2b3708
  rel_string="centos-userland-release"
2b3708
else
2b3708
  rel_string="centos-release"
2b3708
fi
2b3708
Karanbir Singh e379fe
ProvierTag=$(grep distroverpkg /etc/yum.conf | cut -f2 -d'=')
2b3708
rpm -q --whatprovides ${ProvierTag} | grep "$rel_string" > /dev/null
2b3708
t_CheckExitStatus $?