Skip to content

Commit

Permalink
TMT: account for environments on internal testing farm ranch
Browse files Browse the repository at this point in the history
RHEL envs on the internal redhat testing farm ranch don't have any easy way
to install and enable the `epel-release` package.

Also, CentOS-Stream envs on the internal ranch have EPEL installed but
disabled.

This PR should account for both these envs. The tests on public ranch
should continue unaffected.

The packages required for testing have also been moved to the plan
preparation stage itself.

Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 committed Jan 17, 2025
1 parent 8d17a91 commit 714d441
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
17 changes: 14 additions & 3 deletions plans/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,25 @@ discover:
execute:
how: tmt
prepare:
- how: feature
epel: enabled
- when: distro == rhel
how: install
package: https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm --eval '%{?rhel}').noarch.rpm
order: 5
- when: distro == centos-stream or distro == rhel
how: shell
script: dnf -y config-manager --set-enabled epel
order: 10
- when: initiator == packit
because: "We need to test with updated packages from rhcontainerbot/podman-next copr"
how: shell
script: |
sed -i -n '/^priority=/!p;$apriority=1' /etc/yum.repos.d/*podman-next*.repo
dnf -y upgrade --allowerasing
order: 20
- how: install
package:
- bats
- crun
- podman-tests

/upstream:
summary: Run crun specific Podman system tests on upstream PRs
Expand Down
7 changes: 0 additions & 7 deletions tests/tmt/podman/system-test.fmf
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
require:
- bats
- conmon
- crun
- make
- podman-tests

adjust:
duration: 10m
when: arch == aarch64
Expand Down
1 change: 0 additions & 1 deletion tests/tmt/sanity/main.fmf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require: [crun, podman]
summary: Sanity test for crun
tag: ['upstream', 'downstream']
test: bash ./runtest.sh
Expand Down

0 comments on commit 714d441

Please sign in to comment.