tests: Update extra repos in different distros.
* epel removed from RHEL-7 * CRB split in RHEL 8/9 vs CentOS due to different naming
This commit is contained in:
parent
4cce509493
commit
5f6483f6cd
@ -35,19 +35,17 @@ adjust:
|
|||||||
how: shell
|
how: shell
|
||||||
script: dnf config-manager --set-enabled rhel-CRB
|
script: dnf config-manager --set-enabled rhel-CRB
|
||||||
when: >-
|
when: >-
|
||||||
distro == centos
|
distro == rhel-9
|
||||||
or distro == rhel-9
|
|
||||||
or distro == rhel-8
|
or distro == rhel-8
|
||||||
|
|
||||||
# Unfortunatelly, TMT does not support more declarative approach, we need to run commands on our own.
|
# Unfortunately, TMT does not support more declarative approach, we need to run commands on our own.
|
||||||
- because: "On RHEL-7, EPEL must be enabled to provided rarer packages"
|
- because: "On CentOS, CRB must be enabled to provide rarer packages"
|
||||||
prepare+:
|
prepare+:
|
||||||
- name: Enable EPEL
|
- name: Enable CRB
|
||||||
how: shell
|
how: shell
|
||||||
script: |
|
script: dnf config-manager --set-enabled crb
|
||||||
rpm -q epel-release || yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
when: >-
|
||||||
yum-config-manager --enable epel
|
distro == centos
|
||||||
when: distro == rhel-7
|
|
||||||
|
|
||||||
discover:
|
discover:
|
||||||
- name: clang-tests
|
- name: clang-tests
|
||||||
|
Loading…
Reference in New Issue
Block a user