bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone
Blob Blame History Raw
#!/bin/sh
# Author: Athmane Madjoudj <athmanem@gmail.com>

t_Log "Running $0 -  repoclosure test ."

t_InstallPackage yum-utils

t_Log "Running repoclosure test ..."

repoclosure > /tmp/repoclosure.log 2>&1
grep -q 'unresolved deps' /tmp/repoclosure.log
if [ $? -eq 0 ] ; then
    ret_val=1
else
    ret_val=0
fi

# print the output of repoclosure when it fails
[ $ret_val -eq 1 ] && tail /tmp/repoclosure.log

t_CheckExitStatus $ret_val