From 095714aa20a53a313facd3aedda722784fcb394e Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 4 Jun 2024 11:01:57 -0700 Subject: [PATCH] tests: Do not use centos-addons or epel repos for the test build The tmt systems have a number of extra repos installed, and they can cause package selection conflicts with baseos and appstream. Exclude them from the list passed to lorax for building the test boot.iso Related: RHEL-49677 --- tests/scripts/run_tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh index 9f6e98a..02897a1 100755 --- a/tests/scripts/run_tests.sh +++ b/tests/scripts/run_tests.sh @@ -221,7 +221,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=$(find /etc/yum.repos.d/ -maxdepth 1 -type f -name '*\.repo' -exec echo -n "--repo {} " \;) +# Skip centos-addons and all epel repos, these cause conflicts with other release packages +REPOS=$(find /etc/yum.repos.d/ -maxdepth 1 -type f -name '*\.repo' ! -name 'centos-addons.repo' ! -name 'epel*' -exec echo -n "--repo {} " \;) if [ -z "$REPOS" ]; then echo "No system repos found" exit 1