tests: Enable use of custom osbuild-composer repo

This enables the user to specify custom REPO_URL for use during
internal RHEL build testing as ENV in scheduled pipelines.
It also gives the option to use osbuild build specified in
Schutzfile or from the nightly build repository.
This commit is contained in:
Jakub Rusz 2021-06-16 10:24:03 +02:00 committed by Alexander Todorov
parent 905c297bc7
commit b6c579cbe3
2 changed files with 44 additions and 37 deletions

View file

@ -100,8 +100,13 @@ fi
if [ -f "rhel8internal.repo" ]; then
greenprint "Preparing repos for internal build testing"
sudo mv rhel8internal.repo /etc/yum.repos.d/
# Change back to removing osbuild*.repo when we have rpms in 8.5
sudo rm -f /etc/yum.repos.d/osbuild-composer.repo
# Use osbuild from schutzfile if desired for testing custom osbuild-composer packages
# specified by $REPO_URL in ENV and used in prepare-rhel-internal.sh
if [ "$SCHUTZ_OSBUILD" == 1 ]; then
sudo rm -f /etc/yum.repos.d/osbuild-composer.repo
else
sudo rm -f /etc/yum.repos.d/osbuild*.repo
fi
fi
greenprint "Installing test packages for ${PROJECT}"