tests: Do not use fedora.repo for the test build
The tmt systems have a fedora.repo present which is including packages that are not built for RHEL10 and can cause the test build to fail. Resolves: RHEL-40021
This commit is contained in:
parent
18f85d4c10
commit
e94d3b0ad7
@ -7,7 +7,8 @@ if [ ! -e /usr/share/lorax/templates.d/80-rhel/ ]; then
|
||||
fi
|
||||
|
||||
# Gather up the list of system repo files and use them for lorax
|
||||
REPOS=$(for f in /etc/yum.repos.d/*repo; do echo -n "--repo $f "; done)
|
||||
# Skip fedora.repo
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user