Skip to content

Commit d8c2cb8

Browse files
committed
Packit: Delete priority for testing-farm-tag-repo
This will fetch the highest packages from all repos present on the environment. TMT_TREE envvar is ok to use in this case as it will only be used on upstream packit tests. Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
1 parent fb433f7 commit d8c2cb8

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
set -exo pipefail
4+
5+
# Farm tag repo is set at higher priority, conflicting with podman-next
6+
sed -i '/^priority/d' /etc/yum.repos.d/tag-repository.repo
7+
8+
# This should work even when podman-next isn't installed. It'll fetch the
9+
# highest versions available across all repos.
10+
dnf -y upgrade --allowerasing --exclude=podman*

plans/cockpit-podman.fmf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ discover:
1515
execute:
1616
how: tmt
1717

18+
prepare:
19+
when: initiator == packit
20+
how: shell
21+
script: bash $TMT_TREE/contrib/packit-tmt/dnf-repo-setup.sh
22+
order: 20
23+
1824
# not relevant for testing podman
1925
environment:
2026
TEST_AUDIT_NO_SELINUX: 1

plans/system.fmf

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ prepare:
1616
order: 10
1717
- when: initiator == packit
1818
how: shell
19-
script: |
20-
COPR_REPO_FILE="/etc/yum.repos.d/*podman-next*.repo"
21-
if compgen -G $COPR_REPO_FILE > /dev/null; then
22-
sed -i -n '/^priority=/!p;$apriority=1' $COPR_REPO_FILE
23-
fi
24-
dnf -y upgrade --allowerasing --exclude=podman*
19+
script: bash $TMT_TREE/contrib/packit-tmt/dnf-repo-setup.sh
2520
order: 20
2621

2722
adjust+:

0 commit comments

Comments
 (0)