You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_yum-plugin-fastestmirror/0_install_yum-plugin-fastes...

15 lines
381 B

#!/bin/sh
t_Log "Running $0 - package should already be installed"
if [ "$centos_ver" -ge "8" ] ; then
t_Log "yum is replaced by dnf on el8. SKIP"
exit 0
fi
rpm -qa | egrep -q 'yum-.*fastestmirror'
t_CheckExitStatus $?
t_Log "Running $0 - yum should have a hard Requires on yum-plugin-fastestmirror"
rpm -q --requires yum | egrep -q 'yum-.*fastestmirror'
t_CheckExitStatus $?