File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -31,15 +31,6 @@ prepare:
31
31
if grep -q 'CentOS Linux release 7.9' /etc/redhat-release; then
32
32
sed -i '/^mirror/d;s/#\?\(baseurl=http:\/\/\)mirror/\1vault/' /etc/yum.repos.d/*.repo
33
33
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
43
34
discover:
44
35
- name: Prepare managed node
45
36
how: fmf
@@ -62,5 +53,11 @@ discover:
62
53
# filter: tag:reserve_system
63
54
# url: https://github.com/linux-system-roles/tft-tests
64
55
# 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
65
62
execute:
66
- how: tmt
63
+ how: tmt
You can’t perform that action at this time.
0 commit comments