tests: Fix wrong crb repo name for CentOS

Related: rhbz#2107785
This commit is contained in:
Jesus Checa Hidalgo 2022-02-03 15:47:43 +01:00
parent ea7053926a
commit 6dea28937c
1 changed files with 10 additions and 3 deletions

View File

@ -18,17 +18,24 @@ adjust:
and trigger != build and trigger != build
enabled: false enabled: false
# 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, CRB must be enabled to provide rarer packages" - because: "On RHEL, CRB must be enabled to provide rarer packages"
when: >- when: >-
distro == centos distro == rhel-9
or distro == rhel-9
or distro == rhel-8 or distro == rhel-8
prepare+: prepare+:
- name: Enable CRB - name: Enable CRB
how: shell how: shell
script: dnf config-manager --set-enabled rhel-CRB script: dnf config-manager --set-enabled rhel-CRB
- because: "On CentOS, CRB must be enabled to provide rarer packages"
when: >-
distro == centos
prepare+:
- name: Enable CRB
how: shell
script: dnf config-manager --set-enabled crb
discover: discover:
- name: lld-upstream-tests - name: lld-upstream-tests
how: fmf how: fmf