From 23de21feb1caa7796bb656e270f3d2395cfe76c3 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 8 Oct 2024 15:11:22 -0700 Subject: [PATCH] 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 --- tests/scripts/run_tests.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh index 0f6a56d..31b11c9 100755 --- a/tests/scripts/run_tests.sh +++ b/tests/scripts/run_tests.sh @@ -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