TMT: use prepare conditionals instead of adjust
Resolves: RHEL-80817 Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
da854f5de9
commit
b08be34262
@ -2,39 +2,15 @@ discover:
|
|||||||
how: fmf
|
how: fmf
|
||||||
execute:
|
execute:
|
||||||
how: tmt
|
how: tmt
|
||||||
adjust:
|
prepare:
|
||||||
- when: initiator == packit
|
- how: shell
|
||||||
because: "We need to test with updated packages from rhcontainerbot/podman-next copr"
|
|
||||||
prepare+:
|
|
||||||
how: shell
|
|
||||||
script: |
|
script: |
|
||||||
sed -i -n '/^priority=/!p;$apriority=1' /etc/yum.repos.d/*podman-next*.repo
|
BATS_VERSION=1.11.1
|
||||||
dnf -y upgrade --allowerasing
|
curl -L https://github.com/bats-core/bats-core/archive/refs/tags/v$BATS_VERSION.tar.gz | tar zx
|
||||||
# FIXME: Use epel10 once bats is available there
|
cd bats-core-$BATS_VERSION
|
||||||
- when: distro == centos-stream-10 or distro == rhel-10
|
./install.sh /usr
|
||||||
because: "bats isn't yet available on epel10"
|
- how: install
|
||||||
prepare+:
|
package:
|
||||||
how: install
|
- conmon
|
||||||
copr: rhcontainerbot/bats-el10
|
- crun
|
||||||
package: bats
|
- podman-tests
|
||||||
- when: distro == centos-stream-9 or distro == rhel-9
|
|
||||||
because: "bats is present on EPEL on rhel9 / c9s"
|
|
||||||
prepare+:
|
|
||||||
how: feature
|
|
||||||
epel: enabled
|
|
||||||
|
|
||||||
/upstream:
|
|
||||||
summary: Run crun specific Podman system tests on upstream PRs
|
|
||||||
discover+:
|
|
||||||
filter: tag:upstream
|
|
||||||
adjust+:
|
|
||||||
- enabled: false
|
|
||||||
when: initiator is not defined or initiator != packit
|
|
||||||
|
|
||||||
/downstream:
|
|
||||||
summary: Run crun specific Podman system tests on bodhi / errata and dist-git PRs
|
|
||||||
discover+:
|
|
||||||
filter: tag:downstream
|
|
||||||
adjust+:
|
|
||||||
- enabled: false
|
|
||||||
when: initiator == packit
|
|
||||||
|
@ -1,15 +1,7 @@
|
|||||||
require:
|
|
||||||
- bats
|
|
||||||
- conmon
|
|
||||||
- crun
|
|
||||||
- make
|
|
||||||
- podman-tests
|
|
||||||
|
|
||||||
adjust:
|
adjust:
|
||||||
duration: 10m
|
duration: 10m
|
||||||
when: arch == aarch64
|
when: arch == aarch64
|
||||||
|
|
||||||
/system_test:
|
/system_test:
|
||||||
tag: [ upstream, downstream ]
|
|
||||||
summary: Run crun specific Podman tests
|
summary: Run crun specific Podman tests
|
||||||
test: bash ./system-test.sh
|
test: bash ./system-test.sh
|
||||||
|
@ -11,6 +11,6 @@ cat /etc/redhat-release
|
|||||||
rpm -q conmon containers-common crun podman podman-tests
|
rpm -q conmon containers-common crun podman podman-tests
|
||||||
|
|
||||||
# Run crun specific podman tests
|
# Run crun specific podman tests
|
||||||
bats -t /usr/share/podman/test/system/030-run.bats
|
/usr/bin/bats -t /usr/share/podman/test/system/030-run.bats
|
||||||
bats -t /usr/share/podman/test/system/075-exec.bats
|
/usr/bin/bats -t /usr/share/podman/test/system/075-exec.bats
|
||||||
bats -t /usr/share/podman/test/system/280-update.bats
|
/usr/bin/bats -t /usr/share/podman/test/system/280-update.bats
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
require: [crun, podman]
|
|
||||||
summary: Sanity test for crun
|
summary: Sanity test for crun
|
||||||
tag: ['upstream', 'downstream']
|
|
||||||
test: bash ./runtest.sh
|
test: bash ./runtest.sh
|
||||||
duration: 10m
|
duration: 10m
|
||||||
|
Loading…
Reference in New Issue
Block a user