From 816d4e061e748c82f15ca3d1c772d93814a91afe Mon Sep 17 00:00:00 2001 From: Jesus Checa <101630491+jchecahi@users.noreply.github.com> Date: Sat, 7 Sep 2024 16:01:16 +0200 Subject: [PATCH] Lower the priority of testing-farm-tag-repo as first prepare task (#703) --- tests/snapshot-gating.fmf | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/tests/snapshot-gating.fmf b/tests/snapshot-gating.fmf index f02b8d67..11063ffd 100644 --- a/tests/snapshot-gating.fmf +++ b/tests/snapshot-gating.fmf @@ -10,6 +10,17 @@ summary: LLVM Tests for snapshot gating prepare: + # Lower the priority of the testing-farm-tag-repository so that our copr repo is picked up. + # See: https://docs.testing-farm.io/Testing%20Farm/0.1/test-environment.html#_tag_repository + - name: Set testing-farm-tag-repository priority + how: shell + script: | + if dnf repolist | grep -q testing-farm-tag-repository; then + dnf install -y 'dnf5-command(config-manager)' || dnf install -y 'dnf-command(config-manager)' + dnf config-manager --save --setopt="testing-farm-tag-repository.priority=999" || \ + dnf config-manager setopt "testing-farm-tag-repository.priority=999" + fi + - name: Enable copr repo how: shell script: @@ -25,16 +36,6 @@ prepare: # already in the system. - dnf -y install --best llvm-libs - # Lower the priority of the testing-farm-tag-repository so that our copr repo is picked up. - # See: https://docs.testing-farm.io/Testing%20Farm/0.1/test-environment.html#_tag_repository - - how: shell - script: | - if dnf repolist | grep -q testing-farm-tag-repository; then - dnf install -y 'dnf5-command(config-manager)' || dnf install -y 'dnf-command(config-manager)' - dnf config-manager --save --setopt="testing-farm-tag-repository.priority=999" || \ - dnf config-manager setopt "testing-farm-tag-repository.priority=999" - fi - - name: "Check that snapshot (~pre) version of LLVM is installed" how: shell order: 99