Skip to content

Commit

Permalink
TMT: Replace adjust with prepare conditionals
Browse files Browse the repository at this point in the history
Ensure all envs are setup correctly.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
  • Loading branch information
lsm5 committed Jan 15, 2025
1 parent 283ffdf commit 65484cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
trigger: pull_request
packages: [crun-centos]
notifications: *copr_build_failure_notification
targets: &centos_targets
targets: &centos_copr_targets
# Need epel9 repos to fetch wasmedge build dependency
centos-stream-9-x86_64:
additional_repos:
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
trigger: pull_request
packages: [crun-centos]
notifications: *podman_system_test_fail_notification
targets: *centos_targets
targets: *centos_copr_targets
tf_extra_params:
environments:
- artifacts:
Expand Down
25 changes: 7 additions & 18 deletions plans/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,15 @@ discover:
how: fmf
execute:
how: tmt
adjust:
prepare:
- how: feature
epel: enabled
- when: initiator == packit
because: "We need to test with updated packages from rhcontainerbot/podman-next copr"
prepare+:
how: shell
script: |
sed -i -n '/^priority=/!p;$apriority=1' /etc/yum.repos.d/*podman-next*.repo
dnf -y upgrade --allowerasing
# FIXME: Use epel10 once bats is available there
- when: distro == centos-stream-10 or distro == rhel-10
because: "bats isn't yet available on epel10"
prepare+:
how: install
copr: rhcontainerbot/bats-el10
package: bats
- when: distro == centos-stream-9 or distro == rhel-9
because: "bats is present on EPEL on rhel9 / c9s"
prepare+:
how: feature
epel: enabled
how: shell
script: |
sed -i -n '/^priority=/!p;$apriority=1' /etc/yum.repos.d/*podman-next*.repo
dnf -y upgrade --allowerasing

/upstream:
summary: Run crun specific Podman system tests on upstream PRs
Expand Down

0 comments on commit 65484cb

Please sign in to comment.