tests: CRB in CentOS has different name

This commit is contained in:
Miloš Prchlík 2022-02-03 12:39:48 +01:00
parent 35d886f8dc
commit e6d1a04f09

View file

@ -24,6 +24,15 @@ adjust:
WITH_SCL: "scl enable llvm-toolset-13.0 rust-toolset-1.58" WITH_SCL: "scl enable llvm-toolset-13.0 rust-toolset-1.58"
when: "collection == llvm-toolset-13.0" when: "collection == llvm-toolset-13.0"
# Unfortunatelly, TMT does not support more declarative approach, we need to run commands on our own.
- because: "On CentOS, CRB must be enabled to provide rarer packages"
prepare+:
- name: Enable CRB
how: shell
script: dnf config-manager --set-enabled crb
when: >-
distro == centos
# Unfortunatelly, TMT does not support more declarative approach, we need to run commands on our own. # Unfortunatelly, 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"
prepare+: prepare+:
@ -31,8 +40,7 @@ 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. # Unfortunatelly, TMT does not support more declarative approach, we need to run commands on our own.