EPEL should not be on for func tests

This commit is contained in:
Louis Abel 2022-11-21 15:31:00 -07:00
parent 0348fe014e
commit f937f1380b
Signed by: label
GPG key ID: B37E62D143879B36
2 changed files with 12 additions and 0 deletions

View file

@ -41,6 +41,11 @@ function r_processor() {
return 0
}
function r_checkEPELEnabled() {
/usr/bin/dnf repolist | grep -q '^epel'
return $?
}
################################################################################
# Functions that deal with (p)ackages
@ -210,6 +215,7 @@ export rl_arch
export -f r_log
export -f r_checkExitStatus
export -f r_processor
export -f r_checkEPELEnabled
export -f p_installPackageNormal
export -f p_installPackageNoWeaks
export -f p_removePackage

View file

@ -30,6 +30,12 @@ if [ "$SELINUX" != "Enforcing" ]; then
exit 1
fi
is_epel=$(r_checkEPELEnabled)
if [ "$is_epel" -ne 0 ]; then
r_log "internal" "EPEL enabled. Stop."
exit 1
fi
r_log "internal" "Starting Release Engineering Core Tests"
################################################################################