From 2bf010f1dd3879de1290de1bf132f370c91364f9 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Mon, 8 Sep 2025 18:54:37 -0600 Subject: [PATCH] ci: use the new epel feature to enable EPEL for testing farm Now that https://github.com/teemtee/tmt/pull/3128 has merged we can use the new epel feature to enable EPEL for testing farm Signed-off-by: Rich Megginson --- plans/test_playbooks_parallel.fmf | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/plans/test_playbooks_parallel.fmf b/plans/test_playbooks_parallel.fmf index 15a510f..0d031c6 100644 --- a/plans/test_playbooks_parallel.fmf +++ b/plans/test_playbooks_parallel.fmf @@ -29,15 +29,6 @@ prepare: if grep -q 'CentOS Linux release 7.9' /etc/redhat-release; then sed -i '/^mirror/d;s/#\?\(baseurl=http:\/\/\)mirror/\1vault/' /etc/yum.repos.d/*.repo fi - # Replace with feature: epel: enabled once https://github.com/teemtee/tmt/pull/3128 is merged - - name: Enable epel to install beakerlib - script: | - # CS 10 and Fedora doesn't require epel - if grep -q -e 'CentOS Stream release 10' -e 'Fedora release' /etc/redhat-release; then - exit 0 - fi - yum install epel-release yum-utils -y - yum-config-manager --enable epel epel-debuginfo epel-source discover: - name: Prepare managed node how: fmf @@ -60,5 +51,11 @@ discover: # filter: tag:reserve_system # url: https://github.com/linux-system-roles/tft-tests # ref: main +adjust: + - when: distro == rhel-9 or distro == centos-stream-9 or distro == rhel-10 or distro == centos-stream-10 + prepare+: + - how: feature + epel: enabled + order: 10 execute: - how: tmt + how: tmt