Revert "tests: Hard code test repos"
This reverts commit 23de21feb1
.
My hardcoded change only works on gitlab, on rhel it doesn't have the
centos repo. Need to filter the list instead.
Related: RHEL-61778
This commit is contained in:
parent
23de21feb1
commit
f325427b2b
@ -306,9 +306,12 @@ if [ ! -e /usr/share/lorax/templates.d/80-rhel/ ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# HARD CODE the list of repos
|
# Gather up the list of system repo files and use them for lorax
|
||||||
# test systems add a bunch of unneeded repos that cause things to fail
|
REPOS=$(find /etc/yum.repos.d/ -maxdepth 1 -type f -name '*\.repo' ! -name 'fedora.repo' -exec echo -n "--repo {} " \;)
|
||||||
REPOS="--repo /etc/yum.repos.d/centos.repo --repo /etc/yum.repos.d/test-artifacts.repo"
|
if [ -z "$REPOS" ]; then
|
||||||
|
echo "No system repos found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# The c10s tmt systems have started using $stream in the repo urls as of 6/2024, substitute
|
# 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
|
# 10-stream for this variable so that they can be passed to lorax
|
||||||
|
Loading…
Reference in New Issue
Block a user