Skip to content

Commit ca24a11

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 <[email protected]>
1 parent 0d7504b commit ca24a11

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
@@ -39,15 +39,6 @@ prepare:
3939
if grep -q 'CentOS Linux release 7.9' /etc/redhat-release; then
4040
sed -i '/^mirror/d;s/#\?\(baseurl=http:\/\/\)mirror/\1vault/' /etc/yum.repos.d/*.repo
4141
fi
42-
# Replace with feature: epel: enabled once https://github.com/teemtee/tmt/pull/3128 is merged
43-
- name: Enable epel to install beakerlib
44-
script: |
45-
# CS 10 and Fedora doesn't require epel
46-
if grep -q -e 'CentOS Stream release 10' -e 'Fedora release' /etc/redhat-release; then
47-
exit 0
48-
fi
49-
yum install epel-release yum-utils -y
50-
yum-config-manager --enable epel epel-debuginfo epel-source
5142
discover:
5243
- name: Prepare managed node
5344
how: fmf
@@ -70,5 +61,11 @@ discover:
7061
# filter: tag:reserve_system
7162
# url: https://github.com/linux-system-roles/tft-tests
7263
# ref: main
64+
adjust:
65+
- when: distro == rhel-9 or distro == centos-stream-9 or distro == rhel-10 or distro == centos-stream-10
66+
prepare+:
67+
- how: feature
68+
epel: enabled
69+
order: 10
7370
execute:
74-
how: tmt
71+
how: tmt

0 commit comments

Comments
 (0)