bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

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
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 $?