Skip to content

Commit e28ba37

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 6c6cf33 commit e28ba37

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
@@ -29,15 +29,6 @@ prepare:
2929
if grep -q 'CentOS Linux release 7.9' /etc/redhat-release; then
3030
sed -i '/^mirror/d;s/#\?\(baseurl=http:\/\/\)mirror/\1vault/' /etc/yum.repos.d/*.repo
3131
fi
32-
# Replace with feature: epel: enabled once https://github.com/teemtee/tmt/pull/3128 is merged
33-
- name: Enable epel to install beakerlib
34-
script: |
35-
# CS 10 and Fedora doesn't require epel
36-
if grep -q -e 'CentOS Stream release 10' -e 'Fedora release' /etc/redhat-release; then
37-
exit 0
38-
fi
39-
yum install epel-release yum-utils -y
40-
yum-config-manager --enable epel epel-debuginfo epel-source
4132
discover:
4233
- name: Prepare managed node
4334
how: fmf
@@ -60,5 +51,11 @@ discover:
6051
# filter: tag:reserve_system
6152
# url: https://github.com/linux-system-roles/tft-tests
6253
# ref: main
54+
adjust:
55+
- when: distro == rhel-9 or distro == centos-stream-9 or distro == rhel-10 or distro == centos-stream-10
56+
prepare+:
57+
- how: feature
58+
epel: enabled
59+
order: 10
6360
execute:
64-
how: tmt
61+
how: tmt

0 commit comments

Comments
 (0)