tests: pre-install EPEL for koji-osbuild rev dep test on RHEL
koji-osbuild-tests depends on koji which is not available in RHEL. As we need
to get rid of EPEL from deploy.sh (see the following commit), we need a
mechanism to preinstall EPEL before koji-osbuild-tests is installed. This
commit introduces pre_install_packages to Schutzfile - a simple way to
install packages before ${PROJECT}-tests is installed.
Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
21c7b7463c
commit
a1b730d536
2 changed files with 13 additions and 1 deletions
|
|
@ -75,6 +75,15 @@ fi
|
|||
if [[ "$PROJECT" != "osbuild-composer" ]]; then
|
||||
PROJECT_COMMIT=$(jq -r ".[\"${ID}-${VERSION_ID}\"].dependants[\"${PROJECT}\"].commit" Schutzfile)
|
||||
setup_repo "${PROJECT}" "${PROJECT_COMMIT}" 10
|
||||
|
||||
# Get a list of packages needed to be preinstalled before "${PROJECT}-tests".
|
||||
# Useful mainly for EPEL.
|
||||
PRE_INSTALL_PACKAGES=$(jq -r ".[\"${ID}-${VERSION_ID}\"].dependants[\"${PROJECT}\"].pre_install_packages[]?" Schutzfile)
|
||||
|
||||
if [ "${PRE_INSTALL_PACKAGES}" ]; then
|
||||
# shellcheck disable=SC2086 # We need to pass multiple arguments here.
|
||||
sudo dnf -y install ${PRE_INSTALL_PACKAGES}
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $ID == rhel ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue