forked from sig_core/toolkit
EPEL should not be on for func tests
This commit is contained in:
parent
0348fe014e
commit
f937f1380b
@ -41,6 +41,11 @@ function r_processor() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function r_checkEPELEnabled() {
|
||||||
|
/usr/bin/dnf repolist | grep -q '^epel'
|
||||||
|
return $?
|
||||||
|
}
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Functions that deal with (p)ackages
|
# Functions that deal with (p)ackages
|
||||||
|
|
||||||
@ -210,6 +215,7 @@ export rl_arch
|
|||||||
export -f r_log
|
export -f r_log
|
||||||
export -f r_checkExitStatus
|
export -f r_checkExitStatus
|
||||||
export -f r_processor
|
export -f r_processor
|
||||||
|
export -f r_checkEPELEnabled
|
||||||
export -f p_installPackageNormal
|
export -f p_installPackageNormal
|
||||||
export -f p_installPackageNoWeaks
|
export -f p_installPackageNoWeaks
|
||||||
export -f p_removePackage
|
export -f p_removePackage
|
||||||
|
@ -30,6 +30,12 @@ if [ "$SELINUX" != "Enforcing" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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"
|
r_log "internal" "Starting Release Engineering Core Tests"
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user