tests: Hard code test repos

The test systems add a bunch of extra repos that cause depsolving
problems. Only use the minimum needed repos for lorax to build the iso.

Related: RHEL-61778
This commit is contained in:
Brian C. Lane 2024-10-08 15:11:22 -07:00
parent 1bfdb5ddf9
commit 23de21feb1

View File

@ -306,12 +306,9 @@ if [ ! -e /usr/share/lorax/templates.d/80-rhel/ ]; then
exit 1
fi
# Gather up the list of system repo files and use them for lorax
REPOS=$(find /etc/yum.repos.d/ -maxdepth 1 -type f -name '*\.repo' ! -name 'fedora.repo' -exec echo -n "--repo {} " \;)
if [ -z "$REPOS" ]; then
echo "No system repos found"
exit 1
fi
# HARD CODE the list of repos
# test systems add a bunch of unneeded repos that cause things to fail
REPOS="--repo /etc/yum.repos.d/centos.repo --repo /etc/yum.repos.d/test-artifacts.repo"
# The c10s tmt systems have started using $stream in the repo urls as of 6/2024, substitute
# 10-stream for this variable so that they can be passed to lorax