Skip to content

Commit

Permalink
Lower the priority of testing-farm-tag-repo as first prepare task
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus Checa Hidalgo committed Sep 6, 2024
1 parent 0be530d commit 02903f1
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions tests/snapshot-gating.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 02903f1

Please sign in to comment.