Skip to content

Commit 666b3cd

Browse files
committed
ci: use the new epel feature to enable EPEL for testing farm
Now that teemtee/tmt#3128 has merged we can use the new epel feature to enable EPEL for testing farm Signed-off-by: Rich Megginson <rmeggins@redhat.com>
1 parent 026d76a commit 666b3cd

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

plans/test_playbooks_parallel.fmf

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,6 @@ prepare:
3535
if grep -q 'CentOS Linux release 7.9' /etc/redhat-release; then
3636
sed -i '/^mirror/d;s/#\?\(baseurl=http:\/\/\)mirror/\1vault/' /etc/yum.repos.d/*.repo
3737
fi
38-
# Replace with feature: epel: enabled once https://github.com/teemtee/tmt/pull/3128 is merged
39-
- name: Enable epel to install beakerlib
40-
script: |
41-
# CS 10 and Fedora doesn't require epel
42-
if grep -q -e 'CentOS Stream release 10' -e 'Fedora release' /etc/redhat-release; then
43-
exit 0
44-
fi
45-
yum install epel-release yum-utils -y
46-
yum-config-manager --enable epel epel-debuginfo epel-source
4738
discover:
4839
- name: Prepare managed node
4940
how: fmf
@@ -66,5 +57,11 @@ discover:
6657
# filter: tag:reserve_system
6758
# url: https://github.com/linux-system-roles/tft-tests
6859
# ref: main
60+
adjust:
61+
- when: distro == rhel-9 or distro == centos-stream-9 or distro == rhel-10 or distro == centos-stream-10
62+
prepare+:
63+
- how: feature
64+
epel: enabled
65+
order: 10
6966
execute:
70-
how: tmt
67+
how: tmt

0 commit comments

Comments
 (0)