Blame tests/p_yum/yum_distroverpkg.sh
|
Athmane Madjoudj |
5827ae |
#!/bin/sh
|
|
Athmane Madjoudj |
5827ae |
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
|
Athmane Madjoudj |
5827ae |
|
|
Athmane Madjoudj |
5827ae |
t_Log "Running $0 - Yum configuration has the correct distroverpkg value test."
|
|
Athmane Madjoudj |
5827ae |
|
|
Athmane Madjoudj |
995589 |
if (t_GetPkgRel basesystem | grep -q el6)
|
|
Athmane Madjoudj |
995589 |
then
|
|
Athmane Madjoudj |
995589 |
grep "distroverpkg=centos-release" /etc/yum.conf >/dev/null 2>&1
|
|
Athmane Madjoudj |
995589 |
else
|
|
Athmane Madjoudj |
995589 |
echo "Test skipped for CentOS <= 5"
|
|
Athmane Madjoudj |
995589 |
fi
|
|
Athmane Madjoudj |
5827ae |
|
|
Athmane Madjoudj |
5827ae |
t_CheckExitStatus $?
|