Skip to content

Commit

Permalink
Merge pull request #1640 from lsm5/tmt-rhel-conditionals
Browse files Browse the repository at this point in the history
TMT: account for environments on internal testing farm ranch
  • Loading branch information
flouthoc authored Jan 21, 2025
2 parents 8d17a91 + 869804f commit a2d140d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
20 changes: 16 additions & 4 deletions plans/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,26 @@ discover:
execute:
how: tmt
prepare:
- how: feature
epel: enabled
- when: distro == centos-stream or distro == rhel
how: shell
script: |
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm --eval '%{?rhel}').noarch.rpm
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
COPR_REPO_FILE="/etc/yum.repos.d/*podman-next*.repo"
if compgen -G $COPR_REPO_FILE > /dev/null; then
sed -i -n '/^priority=/!p;$apriority=1' $COPR_REPO_FILE
fi
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 a2d140d

Please sign in to comment.