Skip to content

Commit 282e63d

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 75b1a3b commit 282e63d

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
@@ -69,15 +69,6 @@ prepare:
6969
if grep -q 'CentOS Linux release 7.9' /etc/redhat-release; then
7070
sed -i '/^mirror/d;s/#\?\(baseurl=http:\/\/\)mirror/\1vault/' /etc/yum.repos.d/*.repo
7171
fi
72-
# Replace with feature: epel: enabled once https://github.com/teemtee/tmt/pull/3128 is merged
73-
- name: Enable epel to install beakerlib
74-
script: |
75-
# CS 10 and Fedora doesn't require epel
76-
if grep -q -e 'CentOS Stream release 10' -e 'Fedora release' /etc/redhat-release; then
77-
exit 0
78-
fi
79-
yum install epel-release yum-utils -y
80-
yum-config-manager --enable epel epel-debuginfo epel-source
8172
discover:
8273
- name: Prepare managed node
8374
how: fmf
@@ -100,5 +91,11 @@ discover:
10091
# filter: tag:reserve_system
10192
# url: https://github.com/linux-system-roles/tft-tests
10293
# ref: main
94+
adjust:
95+
- when: distro == rhel-9 or distro == centos-stream-9 or distro == rhel-10 or distro == centos-stream-10
96+
prepare+:
97+
- how: feature
98+
epel: enabled
99+
order: 10
103100
execute:
104-
how: tmt
101+
how: tmt

0 commit comments

Comments
 (0)