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
Karanbir Singh e379fe
ProvierTag=$(grep distroverpkg /etc/yum.conf | cut -f2 -d'=')
Karanbir Singh e379fe
rpm -q --whatprovides ${ProvierTag} | grep centos-release > /dev/null
Karanbir Singh e379fe
t_CheckExitStatus $?