Skip to content

Commit 57d709a

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 6db1314 commit 57d709a

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

0 commit comments

Comments
 (0)