Skip to content

Commit cb10f7c

Browse files
author
Jesus Checa Hidalgo
committed
Fix testing-farm-tag-repository priority lowering
Before trying to modify the repo we check that it exists, hence we no longer need to mask the result of commands. This now works with both dnf4 and dnf5 Fixes #671
1 parent d9753f6 commit cb10f7c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/snapshot-gating.fmf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ prepare:
2525
# See: https://docs.testing-farm.io/Testing%20Farm/0.1/test-environment.html#_tag_repository
2626
- how: shell
2727
script: |
28-
dnf install -y dnf-plugins-core
29-
dnf config-manager --save --setopt="testing-farm-tag-repository.priority=999" || true
28+
if dnf repolist | grep -q testing-farm-tag-repository; then
29+
dnf install -y 'dnf5-command(config-manager)' || dnf install -y 'dnf-command(config-manager)'
30+
dnf config-manager --save --setopt="testing-farm-tag-repository.priority=999" || \
31+
dnf config-manager setopt "testing-farm-tag-repository.priority=999"
32+
fi
3033

3134
- name: Assert correct llvm package is installed
3235
how: shell

0 commit comments

Comments
 (0)