Skip to content

Commit 9bf5c12

Browse files
committed
check crun rpm as well
Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent 6391074 commit 9bf5c12

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/podman-tests.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ export PODMAN_BINARY=/usr/bin/podman
2222
# we want to install, especially when podman-next copr is involved
2323
rm -f /etc/yum.repos.d/tag-repository.repo
2424

25-
if [[ "$TEST_TYPE" == "e2e" ]]; then
26-
rpm -q container-selinux golang podman selinux-policy
25+
for pkg in container-selinux crun golang podman podman-tests selinux-policy; do
26+
if ! rpm -q "$pkg"; then
27+
continue
28+
fi
29+
done
2730

31+
if [[ "$TEST_TYPE" == "e2e" ]]; then
2832
# /tmp is often unsufficient
2933
export TMPDIR=/var/tmp
3034

@@ -62,8 +66,6 @@ if [[ "$TEST_TYPE" == "e2e" ]]; then
6266
fi
6367

6468
if [[ "$TEST_TYPE" == "system" ]]; then
65-
rpm -q container-selinux podman podman-tests selinux-policy
66-
6769
# Run podman system tests
6870
bats /usr/share/podman/test/system/410-selinux.bats
6971
bats /usr/share/podman/test/system/520-checkpoint.bats

0 commit comments

Comments
 (0)